u-boot-brain/arch/arm
Marek Vasut fcfdfdd58c ARM: mx6: Prevent overflow in DRAM size detection
The MX6 DRAM controller can be configured to handle 4GiB of DRAM, but
only 3840 MiB of that can be really used. In case the controller is
configured to operate a 4GiB module, the imx_ddr_size() function will
correctly compute that there is 4GiB of DRAM in the system. Firstly,
the return value is 32-bit, so the function will effectively return
zero. Secondly, the MX6 cannot address the full 4GiB, but only 3840MiB
of all that. Thus, clamp the returned size to 3840MiB in such case.

Signed-off-by: Marek Vasut <marex@denx.de>
Acked-by: Tim Harvey <tharvey@gateworks.com>
2014-08-20 12:21:57 +02:00
..
cpu mx6: add support of multi-processor command 2014-08-20 11:52:54 +02:00
dts Merge remote-tracking branch 'u-boot-samsung/master' 2014-07-01 20:52:51 +02:00
imx-common ARM: mx6: Prevent overflow in DRAM size detection 2014-08-20 12:21:57 +02:00
include/asm ARM: mx5: Fix CHSCCDR name 2014-08-20 12:19:20 +02:00
lib arm: Support pre-relocation malloc() 2014-08-04 05:24:35 -06:00
config.mk kconfig: delete redundant CONFIG_${ARCH} definition 2014-07-30 14:42:02 -04:00
Kconfig Update aristainetos board to Kconfig 2014-08-13 09:30:41 +02:00