From: Mike Frysinger Date: Sat, 26 Jul 2008 10:02:05 +0000 (+0800) Subject: Blackfin arch: check the EXTBANKS field of the DDRCTL1 register to see if we are... X-Git-Tag: v2.6.27-rc1~83^2~5 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=b1b154e503a0e590eb9e189586783dc8750f910e;p=linux-2.6-omap-h63xx.git Blackfin arch: check the EXTBANKS field of the DDRCTL1 register to see if we are using both memory banks Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu --- diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c index 8671d1db1f9..102a9db9855 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) case DEVWD_8: ret *= 2; case DEVWD_16: break; } + if ((ddrctl & 0xc000) == 0x4000) + ret *= 2; return ret; #endif BUG();