enable ahab on imx8qm-rom7720

Signed-off-by: Oliver Graute <oliver.gra...@kococonnector.com>
---
 configs/imx8qm_rom7720_a1_4G_defconfig | 1 +
 include/configs/imx8qm_rom7720.h       | 7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/configs/imx8qm_rom7720_a1_4G_defconfig 
b/configs/imx8qm_rom7720_a1_4G_defconfig
index d9997cfa82..49deb283ff 100644
--- a/configs/imx8qm_rom7720_a1_4G_defconfig
+++ b/configs/imx8qm_rom7720_a1_4G_defconfig
@@ -85,4 +85,5 @@ CONFIG_SPL_DM_REGULATOR_GPIO=y
 CONFIG_DM_SERIAL=y
 CONFIG_FSL_LPUART=y
 CONFIG_SPL_TINY_MEMSET=y
+CONFIG_AHAB_BOOT=y
 # CONFIG_EFI_LOADER is not set
diff --git a/include/configs/imx8qm_rom7720.h b/include/configs/imx8qm_rom7720.h
index 81ab5d8caa..b98e739e00 100644
--- a/include/configs/imx8qm_rom7720.h
+++ b/include/configs/imx8qm_rom7720.h
@@ -22,6 +22,12 @@
 
 #define CONFIG_SYS_BOOTM_LEN           SZ_64M
 
+#ifdef CONFIG_AHAB_BOOT
+#define AHAB_ENV "sec_boot=yes\0"
+#else
+#define AHAB_ENV "sec_boot=no\0"
+#endif
+
 /* FUSE command */
 
 /* Boot M4 */
@@ -54,6 +60,7 @@
 
 /* Initial environment variables */
 #define CONFIG_EXTRA_ENV_SETTINGS              \
+       AHAB_ENV \
        CONFIG_MFG_ENV_SETTINGS \
        M4_BOOT_ENV \
        "script=boot.scr\0" \
-- 
2.17.1

Reply via email to