]> git.baikalelectronics.ru Git - uboot.git/commit
imx8: Jump from alias to OCRAM address at SPL init
authorYe Li <ye.li@nxp.com>
Fri, 12 Jul 2019 09:33:52 +0000 (09:33 +0000)
committerStefano Babic <sbabic@denx.de>
Sun, 13 Oct 2019 20:49:12 +0000 (22:49 +0200)
commit467f10d87824a8a7096edca9b8c76aab26e98dc6
tree6a56f05b50aa14fddc0aaa6d317ad2e89743a0e1
parent6a5688a314d2599b4e08ec7c85f3ed7a22e711ee
imx8: Jump from alias to OCRAM address at SPL init

When running SPL on iMX8, the A core starts at address 0
which is a alias to OCRAM 0x100000.
The alias only map first 96KB of OCRAM, so this require the
SPL size can't beyond 96KB. But when using SPL DM, the size increase
significantly and may exceed 96KB.
So to fix the problem, we will change SPL linker address to OCRAM
address 0x100000. And then jump to the absolute address not the PC relative
address for entering OCRAM.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
arch/arm/Kconfig
arch/arm/include/asm/arch-imx8/boot0.h [new file with mode: 0644]