From: Mike Frysinger Date: Thu, 24 Apr 2008 18:19:17 +0000 (+0800) Subject: [Blackfin] arch: BF54x memsizes are in mbits, not mbytes X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37b6972ad8fb08d438fd600888aff212b1b193b0;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [Blackfin] arch: BF54x memsizes are in mbits, not mbytes Pointed-out-by: Michael Hennerich Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu --- diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c index d666832..b0ae5cd 100644 --- a/arch/blackfin/kernel/setup.c +++ b/arch/blackfin/kernel/setup.c @@ -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