]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Blackfin arch: check the EXTBANKS field of the DDRCTL1 register to see if we are...
authorMike Frysinger <vapier.adi@gmail.com>
Sat, 26 Jul 2008 10:02:05 +0000 (18:02 +0800)
committerBryan Wu <cooloney@kernel.org>
Sat, 26 Jul 2008 10:02:05 +0000 (18:02 +0800)
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/kernel/setup.c

index 8671d1db1f994408fb1467a43274be5dc3d618e4..102a9db9855970fb66e8ea6a60666a152dedffb9 100644 (file)
@@ -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();