]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/motionpro/motionpro.c
Merge with /home/tur/git/u-boot#motionpro
[people/ms/u-boot.git] / board / motionpro / motionpro.c
index 40d304b7cc2087af0a216badb088a9f3b670a7b8..6eb5fe9cfc9950a914e9ebfad3d274a9cc701e6a 100644 (file)
@@ -164,11 +164,12 @@ long int initdram(int board_type)
                dramsize = 0;
 
        /* set SDRAM CS0 size according to the amount of RAM found */
-       if (dramsize > 0)
+       if (dramsize > 0) {
                *(vu_long *)MPC5XXX_SDRAM_CS0CFG = 0x13 +
                        __builtin_ffs(dramsize >> 20) - 1;
-        else
+       } else {
                *(vu_long *)MPC5XXX_SDRAM_CS0CFG = 0; /* disabled */
+       }
 
        /* let SDRAM CS1 start right after CS0 and disable it */
        *(vu_long *) MPC5XXX_SDRAM_CS1CFG = dramsize;