summaryrefslogtreecommitdiff
path: root/arch/arm/config.mk
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2016-11-14 17:58:04 +0800
committerYe Li <ye.li@nxp.com>2022-04-06 15:58:38 +0800
commit9ccfbe48b9c7a4623c82033dcd69e8ec36377c5d (patch)
tree696f4f28aaeb37224beda454dd923edc645221a8 /arch/arm/config.mk
parentcafa07d26ff0f26acae596560861406c8d570fc9 (diff)
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) (cherry picked from commit b3a50e57aafe2830388d1295a8583c4e2515594b) (cherry picked from commit 2b9416b3dcd0eb85504aece94a603dc9aca6021e) (cherry picked from commit aadc312ee92c6f6ab2c427ca5eec2a7a02281e50) (cherry picked from commit ea47cbf5a8693a2e111f812d2b48be9703a489ec) (cherry picked from commit 87e18382c6e14ffe038a91e13f7c6e04694f60de)
Diffstat (limited to 'arch/arm/config.mk')
-rw-r--r--arch/arm/config.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/config.mk b/arch/arm/config.mk
index b107b1af27..3c01e8ac25 100644
--- a/arch/arm/config.mk
+++ b/arch/arm/config.mk
@@ -160,6 +160,10 @@ OBJCOPYFLAGS += -j .efi_runtime -j .efi_runtime_rel
endif
ifdef CONFIG_MACH_IMX
+ifdef CONFIG_IMX_M4_BIND
+OBJCOPYFLAGS += -j .firmware_image
+endif
+
ifneq ($(CONFIG_IMX_CONFIG),"")
ifdef CONFIG_SPL
ifndef CONFIG_SPL_BUILD