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>
Fri, 24 May 2019 11:28:36 +0000 (04:28 -0700)
commitb3a50e57aafe2830388d1295a8583c4e2515594b
tree5a1a54285aaf55a73e97f84351147b0ae7fc2f40
parent522748cbcfc2ddd5a3490fe74683926048ff099d
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)
(cherry picked from commit 81b5ea14493ef25a6cca22bc5651ec3e93e941f3)
(cherry picked from commit 1e4414da2e9a671896af1af887ab710489a2007e)
arch/arm/config.mk
arch/arm/cpu/u-boot.lds
arch/arm/mach-imx/mx7ulp/Kconfig
arch/arm/mach-imx/mx7ulp/Makefile
arch/arm/mach-imx/mx7ulp/piggy_m4.S [new file with mode: 0644]
arch/arm/mach-imx/mx7ulp/soc.c