]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
arm: mvebu: dram.c: Rework dram_init() and dram_init_banksize()
authorStefan Roese <sr@denx.de>
Mon, 10 Aug 2015 13:11:27 +0000 (15:11 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:24:14 +0000 (10:24 +0200)
commit43eb62ef2ac598bf6a3f6b6584711c5a05c0329a
treec0b15ee6edbbd33688e94855eae32d78edc2fcf3
parent5527ce1547ca7ea26730a48f4f5425fedf563c7b
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>
arch/arm/mach-mvebu/dram.c