]> git.sur5r.net Git - u-boot/blobdiff - board/svm_sc8xx/svm_sc8xx.c
sh: Cleanup source code of MS7720SE
[u-boot] / board / svm_sc8xx / svm_sc8xx.c
index db3162a0e1581a0436b1cf7d661e436232d61643..06fb18b344c88cddb222d26160ce4f4638e71dfc 100644 (file)
@@ -77,7 +77,7 @@ const uint sdram_table[] =
 
 int checkboard (void)
 {
-    unsigned char *s = getenv("serial#");
+    char *s = getenv("serial#");
     int board_type;
 
     if (!s || strncmp(s, "SVM8", 4)) {
@@ -100,8 +100,8 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
-{    
+phys_size_t initdram (int board_type)
+{
        volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size_b0 = 0;
@@ -145,7 +145,7 @@ long int initdram (int board_type)
        udelay(1);
        memctl->memc_or1 =  0xfc000a00;
        size_b0 = 0x04000000;
-#else 
+#else
 #error SDRAM size configuration missing.
 #endif
        memctl->memc_br1 =  0x00000081;
@@ -153,11 +153,10 @@ long int initdram (int board_type)
        return (size_b0 );
 }
 
-#if (CONFIG_COMMANDS & CFG_CMD_DOC)
+#if defined(CONFIG_CMD_DOC)
 extern void doc_probe (ulong physadr);
 void doc_init (void)
 {
                doc_probe (CFG_DOC_BASE);
 }
 #endif
-