Skip to content

Commit

Permalink
[Blackfin] arch: BF54x memsizes are in mbits, not mbytes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Apr 24, 2008
1 parent 7f1c906 commit 37b6972
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/blackfin/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37b6972

Please sign in to comment.