mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
Blackfin arch: check the EXTBANKS field of the DDRCTL1 register to see if we are using both memory banks
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
This commit is contained in:
parent
9db144fe89
commit
b1b154e503
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue