Skip to contentSkip to conversation

imx: enable ahab on imx8qm-rom7720

PATCH New Oliver Graute 1 participant 1 message May 3, 2022 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imx: enable ahab on imx8qm-rom7720

enable ahab on imx8qm-rom7720

---
 configs/imx8qm_rom7720_a1_4G_defconfig | 1 +
 include/configs/imx8qm_rom7720.h       | 7 +++++++
 2 files changed, 8 insertions(+)
configs/imx8qm_rom7720_a1_4G_defconfig +1 -0
index d9997cfa82..49deb283ff 100644
@@ -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
include/configs/imx8qm_rom7720.h +7 -0
index 81ab5d8caa..b98e739e00 100644
@@ -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" \
Signature · 1 line
2.17.1