summaryrefslogtreecommitdiff
path: root/board/motionpro/motionpro.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/motionpro/motionpro.c')
-rw-r--r--board/motionpro/motionpro.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/board/motionpro/motionpro.c b/board/motionpro/motionpro.c
index 40d304b..6eb5fe9 100644
--- a/board/motionpro/motionpro.c
+++ b/board/motionpro/motionpro.c
@@ -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;