Kconfig: Migrate CONFIG_CSF_SIZE to Kconfig
authorBreno Matheus Lima <breno.lima@nxp.com>
Thu, 18 Jul 2019 12:34:08 +0000 (12:34 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:35:58 +0000 (16:35 +0200)
Move CONFIG_CSF_SIZE to Kconfig and define default value as 0x4000.

mx8mqevk requires 0x2000 add this configuration in imx8mq_evk_defconfig
file.

Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
arch/arm/mach-imx/Kconfig
configs/imx8mq_evk_defconfig
include/configs/cl-som-imx7.h
include/configs/imx8mq_evk.h
include/configs/mx6_common.h
include/configs/mx6sllevk.h
include/configs/mx6ullevk.h
include/configs/mx7_common.h
include/configs/mx7ulp_evk.h
scripts/config_whitelist.txt

index aeb54934888d65de6538aa98e6a0c8ce9df7ec75..d44f74e4745031b7a9f588c1624c21fc37922dbd 100644 (file)
@@ -43,6 +43,13 @@ config SECURE_BOOT
          This option enables the support for secure boot (HAB).
          See doc/README.mxc_hab for more details.
 
+config CSF_SIZE
+       hex "Maximum size for Command Sequence File (CSF) binary"
+       default 0x4000
+       help
+         Define the maximum size for Command Sequence File (CSF) binary
+         this information is used to define the image boot data.
+
 config CMD_BMODE
        bool "Support the 'bmode' command"
        default y
index 59ba4bcb520b980df467a22c3231feb6cf67292c..8d3cdec22bb9e3d105205618f1acf1c8b589dbe5 100644 (file)
@@ -7,6 +7,7 @@ CONFIG_TARGET_IMX8MQ_EVK=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL=y
 CONFIG_SPL_TEXT_BASE=0x7E1000
+CONFIG_CSF_SIZE=0x2000
 CONFIG_FIT=y
 CONFIG_FIT_EXTERNAL_OFFSET=0x3000
 CONFIG_SPL_LOAD_FIT=y
index 67c52d76e72d2dc3d7feca5433f5d463b1e39aae..06f987d3ff1dd82486f8d4892182ed2c352be48a 100644 (file)
@@ -19,7 +19,6 @@
 
 /* Uncomment to enable secure boot support */
 /* #define CONFIG_SECURE_BOOT */
-#define CONFIG_CSF_SIZE                        0x4000
 
 /* Network */
 #define CONFIG_FEC_MXC
index 1ceec5ab5abb9eb84b4da7e989c973d525b41a07..d4d8d20850f7a8b43f0c8d5044aa92eef3876cda 100644 (file)
@@ -9,10 +9,6 @@
 #include <linux/sizes.h>
 #include <asm/arch/imx-regs.h>
 
-#ifdef CONFIG_SECURE_BOOT
-#define CONFIG_CSF_SIZE                        0x2000 /* 8K region */
-#endif
-
 #define CONFIG_SPL_MAX_SIZE            (124 * 1024)
 #define CONFIG_SYS_MONITOR_LEN         (512 * 1024)
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
index f6c0e21d0725d038130715b5345e952402be8553..07b1e06f4f4d77c3c758c25a70c59661ce441719 100644 (file)
 
 /* MMC */
 
-/* Secure boot (HAB) support */
-#ifdef CONFIG_SECURE_BOOT
-#define CONFIG_CSF_SIZE                        0x4000
 #ifdef CONFIG_SPL_BUILD
 #define CONFIG_SPL_DRIVERS_MISC_SUPPORT
 #endif
-#endif
 
 #endif
index fb8f44684b65ba973e45b0dbe3eff8b9decfa2e4..b96e63198d11ab931bf23b3af71f7b78ff95bc98 100644 (file)
 
 #include "mx6_common.h"
 
-#ifdef CONFIG_SECURE_BOOT
-#ifndef CONFIG_CSF_SIZE
-#define CONFIG_CSF_SIZE 0x4000
-#endif
-#endif
-
 /* Size of malloc() pool */
 #define CONFIG_SYS_MALLOC_LEN          (16 * SZ_1M)
 
index f5f3de6cd46eedcb08022819bc4d59120021c84f..3bcd0d3ee345190cb93ea210af42fd4292ff7dff 100644 (file)
 #include "mx6_common.h"
 #include <asm/mach-imx/gpio.h>
 
-#ifdef CONFIG_SECURE_BOOT
-#ifndef CONFIG_CSF_SIZE
-#define CONFIG_CSF_SIZE 0x4000
-#endif
-#endif
-
 #define PHYS_SDRAM_SIZE        SZ_512M
 
 /* Size of malloc() pool */
index 70dda35eb06acf093bffe7f02da0269547689f28..b6ded774cc401ea947a368a2f390d16eba441934 100644 (file)
 
 #define CONFIG_ARMV7_PSCI_1_0
 
-/* Secure boot (HAB) support */
-#ifdef CONFIG_SECURE_BOOT
-#define CONFIG_CSF_SIZE                        0x4000
 #ifdef CONFIG_SPL_BUILD
 #define CONFIG_SPL_DRIVERS_MISC_SUPPORT
 #endif
-#endif
 
 /*
  * If we have defined the OPTEE ram size and not OPTEE it means that we were
index 763a46b47fe1673b6a6d238d81e4f08a08d3457a..8964dcd40e5c02d5526e1ae065e3799ddd7e1448 100644 (file)
 /*Uncomment it to use secure boot*/
 /*#define CONFIG_SECURE_BOOT*/
 
-#ifdef CONFIG_SECURE_BOOT
-#ifndef CONFIG_CSF_SIZE
-#define CONFIG_CSF_SIZE                        0x4000
-#endif
-#endif
-
 #define CONFIG_BOARD_POSTCLK_INIT
 #define CONFIG_SYS_BOOTM_LEN           0x1000000
 
index 5a007d37091cc38c698f20a1f5d3ddd6e610215d..c7b02451e0cb648b317cda8dfb196d303a307d4a 100644 (file)
@@ -266,7 +266,6 @@ CONFIG_CPU_VR41XX
 CONFIG_CQSPI_REF_CLK
 CONFIG_CS8900_BUS16
 CONFIG_CS8900_BUS32
-CONFIG_CSF_SIZE
 CONFIG_CTL_JTAG
 CONFIG_CTL_TBE
 CONFIG_CUSTOMER_BOARD_SUPPORT