]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: imx8m: Prepare imx8m-venice boards for HAB support
authorTim Harvey <tharvey@gateworks.com>
Fri, 23 Jun 2023 16:44:59 +0000 (09:44 -0700)
committerStefano Babic <sbabic@denx.de>
Thu, 13 Jul 2023 09:29:40 +0000 (11:29 +0200)
In order to enable HAB, FSL_CAAM, ARCH_MISC_INIT and
SPL_CRYPTO should be enabled in Kconfig like other i.MX8M
boards.

This also needs to occur in the SPL so enable CONFIG_SPL_BOARD_INIT and
add a void spl_board_init function which calls arch_misc_init to probe
the CAAM driver.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx8m/Kconfig
board/gateworks/venice/spl.c
configs/imx8mm_venice_defconfig
configs/imx8mn_venice_defconfig
configs/imx8mp_venice_defconfig

index 67db3e46ecd2b8e1c1e52e71981d675809c5dc7f..3d62d7052e7fdc0881a4e8648c03a90b33a3ef3e 100644 (file)
@@ -124,6 +124,9 @@ config TARGET_IMX8MM_VENICE
        select IMX8M_LPDDR4
        select GATEWORKS_SC
        select MISC
+       select FSL_CAAM
+       select ARCH_MISC_INIT
+       select SPL_CRYPTO if SPL
 
 config TARGET_KONTRON_MX8MM
        bool "Kontron Electronics N80xx"
@@ -175,6 +178,9 @@ config TARGET_IMX8MN_VENICE
        select IMX8M_LPDDR4
        select GATEWORKS_SC
        select MISC
+       select FSL_CAAM
+       select ARCH_MISC_INIT
+       select SPL_CRYPTO if SPL
 
 config TARGET_IMX8MP_DATA_MODUL_EDM_SBC
        bool "Data Modul eDM SBC i.MX8M Plus"
@@ -232,6 +238,9 @@ config TARGET_IMX8MP_VENICE
        select IMX8M_LPDDR4
        select GATEWORKS_SC
        select MISC
+       select FSL_CAAM
+       select ARCH_MISC_INIT
+       select SPL_CRYPTO if SPL
 
 config TARGET_PICO_IMX8MQ
        bool "Support Technexion Pico iMX8MQ"
index 606738a8c97c30f0596ccd74a7e22299cc5275a0..5aa209578b21db82ee467a42e9a7e1e44afa4d32 100644 (file)
@@ -373,3 +373,8 @@ const char *spl_board_loader_name(u32 boot_device)
                return NULL;
        }
 }
+
+void spl_board_init(void)
+{
+       arch_misc_init();
+}
index e533a40f24aaa60aa2cb30f55d060db68d3abc8f..a485910a5299858c2038c82a0fbd17e55abcb18f 100644 (file)
@@ -36,6 +36,7 @@ CONFIG_BOARD_LATE_INIT=y
 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
 CONFIG_SPL_BSS_START_ADDR=0x910000
 CONFIG_SPL_BSS_MAX_SIZE=0x2000
+CONFIG_SPL_BOARD_INIT=y
 # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
 CONFIG_SYS_SPL_MALLOC=y
 CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
index c066f6d8ba0754440adc9c265415c8db2e7f2e0e..39f930ae2caef6a1faaf1c021a870ec5feb52d1f 100644 (file)
@@ -38,6 +38,7 @@ CONFIG_SPL_MAX_SIZE=0x25000
 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
 CONFIG_SPL_BSS_START_ADDR=0x950000
 CONFIG_SPL_BSS_MAX_SIZE=0x2000
+CONFIG_SPL_BOARD_INIT=y
 CONFIG_SPL_BOOTROM_SUPPORT=y
 # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
 CONFIG_SYS_SPL_MALLOC=y
index ee4b84db19142aa44c4b0500e9b152d228a57498..294206ba8b269c9d6fd5c0cf160f66ca8f4a2a13 100644 (file)
@@ -38,6 +38,7 @@ CONFIG_SPL_MAX_SIZE=0x26000
 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
 CONFIG_SPL_BSS_START_ADDR=0x98fc00
 CONFIG_SPL_BSS_MAX_SIZE=0x400
+CONFIG_SPL_BOARD_INIT=y
 CONFIG_SPL_BOOTROM_SUPPORT=y
 # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
 CONFIG_SYS_SPL_MALLOC=y