u-boot-brain/arch/arm/cpu/arm926ejs/mxs
Marek Vasut 9c2c8a3129 arm: mxs: Adjust the load address of U-Boot and SPL for HAB
When using HAB, there are additional special requirements on the placement of
U-Boot and the U-Boot SPL in memory. To fullfill these, this patch moves the
U-Boot binary a little further from the begining of the DRAM, so the HAB CST
and IVT can be placed in front of the U-Boot binary. This is necessary, since
both the U-Boot and the IVT must be contained in single CST signature. To
make things worse, the IVT must be concatenated with one more entry at it's
end, that is the length of the entire CST signature, IVT and U-Boot binary
in memory. By placing the blocks in this order -- CST, IVT, U-Boot, we can
easily align them all and then produce the length field as needed.

As for the SPL, on i.MX23/i.MX28, the SPL size is limited to 32 KiB, thus
we place the IVT at 0x8000 offset, CST right past IVT and claim the size
is correct. The HAB library accepts this setup.

Finally, to make sure the vectoring in SPL still works even after moving
the SPL from 0x0 to 0x1000, we add a small function which copies the
vectoring code and tables to 0x0. This is fine, since the vectoring code
is position independent.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
2014-03-31 18:28:50 +02:00
..
clock.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
iomux.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
Makefile Merge branch 'iu-boot/master' into 'u-boot-arm/master' 2013-11-09 22:59:47 +01:00
mxs_init.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mxs.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mxsimage.mx23.cfg arm: mxs: Adjust the load address of U-Boot and SPL for HAB 2014-03-31 18:28:50 +02:00
mxsimage.mx28.cfg arm: mxs: Adjust the load address of U-Boot and SPL for HAB 2014-03-31 18:28:50 +02:00
spl_boot.c arm: mxs: Adjust the load address of U-Boot and SPL for HAB 2014-03-31 18:28:50 +02:00
spl_lradc_init.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
spl_mem_init.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
spl_power_init.c ARM: mxs: Enable DCDC converter for battery boot 2013-10-31 17:54:23 +01:00
start.S arm: remove unneeded symbol offsets and _TEXT_BASE 2014-02-26 21:18:12 +01:00
timer.c Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
u-boot-imx23.bd arm: mxs: Preprocess u-boot.bd so they contain full path 2013-05-06 10:37:36 +02:00
u-boot-imx28.bd arm: mxs: Preprocess u-boot.bd so they contain full path 2013-05-06 10:37:36 +02:00
u-boot-spl.lds arm: mxs: Adjust the load address of U-Boot and SPL for HAB 2014-03-31 18:28:50 +02:00