diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-04-24 14:19:17 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-04-24 14:19:17 -0400 |
commit | 37b6972ad8fb08d438fd600888aff212b1b193b0 (patch) | |
tree | 4b75e176fb60bd06440fc9fca64069269120c705 /arch/blackfin/kernel | |
parent | 7f1c906808a36630990d83d872935c079b76595b (diff) |
[Blackfin] arch: BF54x memsizes are in mbits, not mbytes
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>
Diffstat (limited to 'arch/blackfin/kernel')
-rw-r--r-- | arch/blackfin/kernel/setup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c index d6668328be72..b0ae5cd44203 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) | |||
681 | # endif | 681 | # endif |
682 | # elif defined(EBIU_DDRCTL1) | 682 | # elif defined(EBIU_DDRCTL1) |
683 | switch (bfin_read_EBIU_DDRCTL1() & 0xc0000) { | 683 | switch (bfin_read_EBIU_DDRCTL1() & 0xc0000) { |
684 | case DEVSZ_64: return 64; | 684 | case DEVSZ_64: return 64 / 8; |
685 | case DEVSZ_128: return 128; | 685 | case DEVSZ_128: return 128 / 8; |
686 | case DEVSZ_256: return 256; | 686 | case DEVSZ_256: return 256 / 8; |
687 | case DEVSZ_512: return 512; | 687 | case DEVSZ_512: return 512 / 8; |
688 | default: return 0; | 688 | default: return 0; |
689 | } | 689 | } |
690 | # endif | 690 | # endif |