MLK-17897: mx7ulp: Move CONFIG_SECURE_BOOT option to Kconfig
authorBreno Lima <breno.lima@nxp.com>
Tue, 20 Mar 2018 13:09:47 +0000 (10:09 -0300)
committerYe Li <ye.li@nxp.com>
Fri, 23 Mar 2018 02:48:01 +0000 (19:48 -0700)
Since commit 6e1f4d2652e79 ("arm: imx-common: add SECURE_BOOT option
to Kconfig") it's preferable to select CONFIG_SECURE_BOOT via Kconfig.

Add ARCH_MX7ULP as a CONFIG_SECURE_BOOT dependency, do not select
CONFIG_FSL_CAAM since CAAM is not implemented for i.MX7ULP yet.

Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
arch/arm/imx-common/Kconfig
include/configs/mx7ulp_arm2.h
include/configs/mx7ulp_evk.h

index f557897..a7252a0 100644 (file)
@@ -39,8 +39,8 @@ config USE_IMXIMG_PLUGIN
 
 config SECURE_BOOT
        bool "Support i.MX HAB features"
-       depends on ARCH_MX7 || ARCH_MX6 || ARCH_MX5 || ARCH_IMX8M
-       select FSL_CAAM if !MX6ULL && !MX6SLL && !MX6SL && !IMX8M
+       depends on ARCH_MX7 || ARCH_MX6 || ARCH_MX5 || ARCH_IMX8M || ARCH_MX7ULP
+       select FSL_CAAM if !MX6ULL && !MX6SLL && !MX6SL && !IMX8M && !MX7ULP
        help
          This option enables the support for secure boot (HAB).
          See doc/README.mxc_hab for more details.
index a7b5b0c..ba4c20b 100644 (file)
@@ -12,9 +12,6 @@
 #include <linux/sizes.h>
 #include <asm/arch/imx-regs.h>
 
-/*Uncomment it to use secure boot*/
-/*#define CONFIG_SECURE_BOOT*/
-
 #ifdef CONFIG_SECURE_BOOT
 #ifndef CONFIG_CSF_SIZE
 #define CONFIG_CSF_SIZE 0x4000
index 7d07dea..faac54a 100644 (file)
@@ -13,9 +13,6 @@
 #include <linux/sizes.h>
 #include <asm/arch/imx-regs.h>
 
-/*Uncomment it to use secure boot*/
-/*#define CONFIG_SECURE_BOOT*/
-
 #ifdef CONFIG_SECURE_BOOT
 #ifndef CONFIG_CSF_SIZE
 #define CONFIG_CSF_SIZE                        0x4000