diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-07-26 10:02:05 (GMT) |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-07-26 10:02:05 (GMT) |
commit | b1b154e503a0e590eb9e189586783dc8750f910e (patch) | |
tree | fcb09b57e40f3513b1679782f9544d28cef62296 /arch/blackfin | |
parent | 9db144fe897bb09838294aab2229cb423ab40988 (diff) | |
download | linux-fsl-qoriq-b1b154e503a0e590eb9e189586783dc8750f910e.tar.xz |
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')
-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 8671d1d..102a9db 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(); |