Skip to content

Commit

Permalink
Blackfin arch: check the EXTBANKS field of the DDRCTL1 register to se…
Browse files Browse the repository at this point in the history
…e if we are using both memory banks

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 Jul 26, 2008
1 parent 9db144f commit b1b154e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/blackfin/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b1b154e

Please sign in to comment.