diff options
author | Stefan Roese <sr@denx.de> | 2015-08-10 15:11:27 +0200 |
---|---|---|
committer | Luka Perkov <luka.perkov@sartura.hr> | 2015-08-17 18:49:29 +0200 |
commit | a8b57a90ec65832ca069ed1b0900cf92e9efd6a0 (patch) | |
tree | 187f7fc45ea99d80e5adf0b1a0db6e29c4ccadd2 /drivers | |
parent | 2923c2d2febad412c1d7a955ca1b08c8bdd31cf4 (diff) | |
download | u-boot-imx-a8b57a90ec65832ca069ed1b0900cf92e9efd6a0.zip u-boot-imx-a8b57a90ec65832ca069ed1b0900cf92e9efd6a0.tar.gz u-boot-imx-a8b57a90ec65832ca069ed1b0900cf92e9efd6a0.tar.bz2 |
arm: mvebu: dram.c: Rework dram_init() and dram_init_banksize()
Rework these functions so that dram_init_banksize() does not call
dram_init() again. It only needs to set the banksize values in the
bdinfo struct.
Make sure to also clip the size of the last bank if it exceeds the
maximum allowed value of 3 GiB (0xc000.0000). Otherwise other
address windows (e.g. PCIe) will overlap with this memory window.
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions