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-Url: https://git.stricted.de/?a=commitdiff_plain;h=b1b154e503a0e590eb9e189586783dc8750f910e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 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) case DEVWD_8: ret *= 2; case DEVWD_16: break; } + if ((ddrctl & 0xc000) == 0x4000) + ret *= 2; return ret; #endif BUG();