MLK-13450-7 mx7ulp: Add M4 core boot support when using single boot mode
authorYe Li <ye.li@nxp.com>
Mon, 14 Nov 2016 09:58:04 +0000 (17:58 +0800)
committerYe Li <ye.li@nxp.com>
Wed, 5 Apr 2017 09:23:53 +0000 (17:23 +0800)
commit81b5ea14493ef25a6cca22bc5651ec3e93e941f3
tree3663323084ac4d40346f74a4156a2ea9e40c74dc
parent0dbc05440c35328098c3596893c8e6bb8c4e8e40
MLK-13450-7 mx7ulp: Add M4 core boot support when using single boot mode

The single boot mode in MX7ULP will only boot up A7, the M4 is running in ROM
by checking entry from SIM0 GP register.

In this patch, We bind M4 image with u-boot.bin by allocating a section for m4 image.
So the whole image (included M4 image) will be loaded by A7 ROM into DDR. Then
when u-boot is up, it will try to load M4 image into TCML and boot it there.

Since M4 image will not be relocated in u-boot codes, we must load it during
board_f. Current implementation put it in arch_cpu_init to get M4 booted
as quick as possible.

We requires the M4 image with IVT head and padding embedded, not a RAW binary. The
image should be same as what is used for M4 QSPI boot in dual boot mode.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 04163dbd4f6190f310fff17b53b4bc7b8370ba89)
arch/arm/cpu/armv7/mx7ulp/Kconfig
arch/arm/cpu/armv7/mx7ulp/Makefile
arch/arm/cpu/armv7/mx7ulp/piggy_m4.S [new file with mode: 0644]
arch/arm/cpu/armv7/mx7ulp/soc.c
arch/arm/cpu/u-boot.lds
arch/arm/imx-common/Kconfig