summaryrefslogtreecommitdiff
path: root/include/configs/imx8qm_mek_android_auto.h
diff options
context:
space:
mode:
authorJi Luo <ji.luo@nxp.com>2019-03-07 09:17:54 +0800
committerJi Luo <ji.luo@nxp.com>2019-03-07 09:17:54 +0800
commit7d111f4c8bac25c234b0fc24af885421ce8bb188 (patch)
treef8f51f1eb2e9eebfe90793fba2f1f2de61e1067c /include/configs/imx8qm_mek_android_auto.h
parent1d368140f32cce8fc35962b18da6332d383bb094 (diff)
MA-14273-1 imx8q: Move spl to dram to fix reboot issue
The spl is located at ocram which will be lost when suspend/resume, partition reboot will make A core reboot from the start address of ATF, which blocks dual bootloader feature on Android Auto. Move the spl to dram and make the partition reboot from spl to fix this issue. The memory map will be changed to: SPL: 0x0000_0000 --------> 0x8000_0000 ATF: 0x8000_0000 --------> 0x8004_0000 U-boot: 0x8002_0000 --------> 0x8006_0000 Test: reboot ok on imx8qm/imx8qxp. Change-Id: I49e8be51bf427dd00eb7507de22a787c6f6e1582 Signed-off-by: Ji Luo <ji.luo@nxp.com>
Diffstat (limited to 'include/configs/imx8qm_mek_android_auto.h')
-rw-r--r--include/configs/imx8qm_mek_android_auto.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/configs/imx8qm_mek_android_auto.h b/include/configs/imx8qm_mek_android_auto.h
index c0a0683ad3..8781856b03 100644
--- a/include/configs/imx8qm_mek_android_auto.h
+++ b/include/configs/imx8qm_mek_android_auto.h
@@ -120,6 +120,37 @@
#define CONFIG_FSL_CAAM_KB
#define CONFIG_SPL_CRYPTO_SUPPORT
#define CONFIG_SYS_FSL_SEC_LE
+
+/* Change default spl/atf/u-boot address to support partition reboot. */
+#ifdef CONFIG_SPL_TEXT_BASE
+#undef CONFIG_SPL_TEXT_BASE
+#define CONFIG_SPL_TEXT_BASE 0x80000000
+#endif
+#ifdef CONFIG_SPL_STACK
+#undef CONFIG_SPL_STACK
+#define CONFIG_SPL_STACK 0x8003E000
+#endif
+#ifdef CONFIG_SPL_BSS_START_ADDR
+#undef CONFIG_SPL_BSS_START_ADDR
+#define CONFIG_SPL_BSS_START_ADDR 0x80038000
+#endif
+#ifdef CONFIG_SYS_SPL_MALLOC_START
+#undef CONFIG_SYS_SPL_MALLOC_START
+#define CONFIG_SYS_SPL_MALLOC_START 0x80020000
+#endif
+#ifdef CONFIG_MALLOC_F_ADDR
+#undef CONFIG_MALLOC_F_ADDR
+#define CONFIG_MALLOC_F_ADDR 0x80020000
+#endif
+#ifdef CONFIG_ATF_TEXT_BASE
+#undef CONFIG_ATF_TEXT_BASE
+#define CONFIG_ATF_TEXT_BASE 0x80040000
+#endif
+#ifdef CONFIG_SYS_ATF_START
+#undef CONFIG_SYS_ATF_START
+#define CONFIG_SYS_ATF_START 0x80040000
+#endif
+
#endif
#define AVB_AB_I_UNDERSTAND_LIBAVB_AB_IS_DEPRECATED