diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-07-26 18:02:05 +0800 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-07-26 18:02:05 +0800 |
commit | b1b154e503a0e590eb9e189586783dc8750f910e (patch) | |
tree | fcb09b57e40f3513b1679782f9544d28cef62296 | |
parent | 9db144fe897bb09838294aab2229cb423ab40988 (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>
-rw-r--r-- | arch/blackfin/kernel/setup.c | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |