u-boot/arch/arm/mach-imx/imx8
Ye Li 7c351ff5e0 imx: imx8qm/qxp: Fix issue in get_effective_memsize
When Trusty OS allocates the mem region from 0xfe0000000-0xffffffff,
the get_effective_memsize does not return correct memory size.
There is a check in get_effective_memsize to find the memreg where
the u-boot is running, and return the size of that memreg as the result
of get_effective_memsize. When using aligned start, the value is
0x80200000 since it is 2MB aligned. Thus the finding of memreg will
fail and return the PHYS_SDRAM_1_SIZE because u-boot text base is
0x80020000. This cause u-boot is relocated to the high memory where has
been occupied by Trusty OS.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-05-10 20:55:20 +02:00
..
ahab.c imx8: ahab: fix some bad debug message formating 2020-05-01 13:46:22 +02:00
clock.c imx8: add dummy clock 2018-10-22 12:59:01 +02:00
cpu.c imx: imx8qm/qxp: Fix issue in get_effective_memsize 2020-05-10 20:55:20 +02:00
fdt.c imx: imx8qm/qxp: reserving DDR memory for M4 2020-05-10 20:55:20 +02:00
image.c spl: mmc: Fix spl_mmc_get_uboot_raw_sector() implementation 2020-03-09 08:33:16 +08:00
iomux.c imx8: add iomux configuration api 2018-10-22 12:59:01 +02:00
Kconfig imx: imx8qm/qxp: reserving DDR memory for M4 2020-05-10 20:55:20 +02:00
lowlevel_init.S imx8: save args passed from ATF 2019-10-08 16:35:59 +02:00
Makefile imx8: Configure SNVS 2020-05-01 13:46:22 +02:00
misc.c imx8: move SIP macro to common header 2020-05-01 13:46:21 +02:00
parse-container.c imx8: parser: fix some bad debug message formating 2020-05-01 13:46:22 +02:00
snvs_security_sc.c imx8: Configure SNVS 2020-05-01 13:46:22 +02:00