]> err.no Git - linux-2.6/commitdiff
[Blackfin] arch: BF54x memsizes are in mbits, not mbytes
authorMike Frysinger <vapier.adi@gmail.com>
Thu, 24 Apr 2008 18:19:17 +0000 (02:19 +0800)
committerBryan Wu <cooloney@kernel.org>
Thu, 24 Apr 2008 18:19:17 +0000 (02:19 +0800)
Pointed-out-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/kernel/setup.c

index d6668328be7243f0d87f9830110dd0cdaad541cb..b0ae5cd442037acf983a841c00634429ead06639 100644 (file)
@@ -681,10 +681,10 @@ static inline int __init get_mem_size(void)
 #  endif
 # elif defined(EBIU_DDRCTL1)
        switch (bfin_read_EBIU_DDRCTL1() & 0xc0000) {
-               case DEVSZ_64:  return 64;
-               case DEVSZ_128: return 128;
-               case DEVSZ_256: return 256;
-               case DEVSZ_512: return 512;
+               case DEVSZ_64:  return 64 / 8;
+               case DEVSZ_128: return 128 / 8;
+               case DEVSZ_256: return 256 / 8;
+               case DEVSZ_512: return 512 / 8;
                default:        return 0;
        }
 # endif