arm: imx: Finish migration of CONFIG_CSF_SIZE to Kconfig
authorTom Rini <trini@konsulko.com>
Tue, 16 Jun 2020 23:06:26 +0000 (19:06 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 26 Jun 2020 14:29:06 +0000 (10:29 -0400)
While in most cases CSF_SIZE is handled via Kconfig we have some i.MX8M
platforms that set the size based on the now-renamed CONFIG_SECURE_BOOT
symbol.  Update things so that CSF_SIZE itself depends on IMX_HAB being
enabled and provide the default value for i.MX8M family of parts.

Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Ye Li <ye.li@nxp.com>
Cc: NXP i.MX U-Boot Team <uboot-imx@nxp.com>
Fixes: d714a75fd4dc ("imx: replace CONFIG_SECURE_BOOT with CONFIG_IMX_HAB")
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Stefano Babic <sbabic@denx.de>
Reviewed-by: Ye Li <ye.li@nxp.com>
arch/arm/mach-imx/Kconfig
include/configs/imx8mm_beacon.h
include/configs/imx8mm_evk.h
include/configs/imx8mn_evk.h
include/configs/imx8mp_evk.h
include/configs/verdin-imx8mm.h

index 6c3fedf665d6e47b70e6d01a490958e2c9b8beea..1531d09f3bea04414d05aa31843164810ad7f550 100644 (file)
@@ -52,6 +52,8 @@ config IMX_HAB
 
 config CSF_SIZE
        hex "Maximum size for Command Sequence File (CSF) binary"
+       depends on IMX_HAB
+       default 0x2000 if ARCH_IMX8M
        default 0x2060
        help
          Define the maximum size for Command Sequence File (CSF) binary
index 21102d3c14d2c165f58780b5559c4da412653544..ce3ba749243523f610b7c65efb0ddd3e8e8201fb 100644 (file)
@@ -9,10 +9,6 @@
 #include <linux/sizes.h>
 #include <asm/arch/imx-regs.h>
 
-#ifdef CONFIG_SECURE_BOOT
-#define CONFIG_CSF_SIZE                SZ_8K
-#endif
-
 #define CONFIG_SPL_MAX_SIZE            (148 * 1024)
 #define CONFIG_SYS_MONITOR_LEN SZ_512K
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
index 901a1bed6dd1ceb5c639227b6c71827157165b1e..382ba620ccf45a369357b8510a1f42ee4c1154bf 100644 (file)
 #include <linux/stringify.h>
 #include <asm/arch/imx-regs.h>
 
-#ifdef CONFIG_SECURE_BOOT
-#define CONFIG_CSF_SIZE                        SZ_8K
-#endif
-
 #define CONFIG_SPL_MAX_SIZE            (148 * 1024)
 #define CONFIG_SYS_MONITOR_LEN         SZ_512K
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
index a07440c73ba88cda96b5b4b464b38b90c0974f57..4350b5a62afff42b300576b57a6f582fff85b58b 100644 (file)
 #include <linux/stringify.h>
 #include <asm/arch/imx-regs.h>
 
-#ifdef CONFIG_SECURE_BOOT
-#define CONFIG_CSF_SIZE                        SZ_8K
-#endif
-
 #define CONFIG_SPL_MAX_SIZE            (148 * 1024)
 #define CONFIG_SYS_MONITOR_LEN         SZ_512K
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
index 7f38f21c09c5848ff8b2e9be35ca8599e719b724..9c13235982c67ae2afc92ab2916f63d76af8f41b 100644 (file)
 #include <linux/stringify.h>
 #include <asm/arch/imx-regs.h>
 
-#ifdef CONFIG_SECURE_BOOT
-#define CONFIG_CSF_SIZE                        0x2000 /* 8K region */
-#endif
-
 #define CONFIG_SPL_MAX_SIZE            (152 * 1024)
 #define CONFIG_SYS_MONITOR_LEN         (512 * 1024)
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
index ca528598f2f16e253aa32a71b4bc76627f4d1047..878c4996df42b3ea3514bfa337f661d7e37994df 100644 (file)
@@ -9,10 +9,6 @@
 #include <asm/arch/imx-regs.h>
 #include <linux/sizes.h>
 
-#ifdef CONFIG_SECURE_BOOT
-#define CONFIG_CSF_SIZE                        SZ_8K
-#endif
-
 #define CONFIG_SPL_MAX_SIZE            (148 * 1024)
 #define CONFIG_SYS_MONITOR_LEN         SZ_512K
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR