aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/kernel/setup.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier.adi@gmail.com>2008-07-26 06:02:05 -0400
committerBryan Wu <cooloney@kernel.org>2008-07-26 06:02:05 -0400
commitb1b154e503a0e590eb9e189586783dc8750f910e (patch)
treefcb09b57e40f3513b1679782f9544d28cef62296 /arch/blackfin/kernel/setup.c
parent9db144fe897bb09838294aab2229cb423ab40988 (diff)
Blackfin arch: check the EXTBANKS field of the DDRCTL1 register to see if we are using both memory banks
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/kernel/setup.c')
-rw-r--r--arch/blackfin/kernel/setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c
index 8671d1db1f99..102a9db98559 100644
--- a/arch/blackfin/kernel/setup.c
+++ b/arch/blackfin/kernel/setup.c
@@ -700,6 +700,8 @@ static inline int __init get_mem_size(void)
700 case DEVWD_8: ret *= 2; 700 case DEVWD_8: ret *= 2;
701 case DEVWD_16: break; 701 case DEVWD_16: break;
702 } 702 }
703 if ((ddrctl & 0xc000) == 0x4000)
704 ret *= 2;
703 return ret; 705 return ret;
704#endif 706#endif
705 BUG(); 707 BUG();