Commit b1b154e5 authored by Mike Frysinger's avatar Mike Frysinger Committed by Bryan Wu

Blackfin arch: check the EXTBANKS field of the DDRCTL1 register to see if we...

Blackfin arch: check the EXTBANKS field of the DDRCTL1 register to see if we are using both memory banks
Signed-off-by: default avatarMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
parent 9db144fe
...@@ -700,6 +700,8 @@ static inline int __init get_mem_size(void) ...@@ -700,6 +700,8 @@ static inline int __init get_mem_size(void)
case DEVWD_8: ret *= 2; case DEVWD_8: ret *= 2;
case DEVWD_16: break; case DEVWD_16: break;
} }
if ((ddrctl & 0xc000) == 0x4000)
ret *= 2;
return ret; return ret;
#endif #endif
BUG(); BUG();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment