Commit 88077715 authored by Tom Rini's avatar Tom Rini

NXP: Introduce board/freescale/common/Kconfig and migrate CHAIN_OF_TRUST

Introduce board/freescale/common/Kconfig so that we have a single place
for CONFIG options that are shared between ARM and PowerPC NXP platforms.

Cc: York Sun <york.sun@nxp.com>
Signed-off-by: default avatarTom Rini <trini@konsulko.com>
Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
parent f428268a
...@@ -7,14 +7,6 @@ ...@@ -7,14 +7,6 @@
#ifndef __FSL_SECURE_BOOT_H #ifndef __FSL_SECURE_BOOT_H
#define __FSL_SECURE_BOOT_H #define __FSL_SECURE_BOOT_H
#ifdef CONFIG_SECURE_BOOT
#ifndef CONFIG_FIT_SIGNATURE
#define CONFIG_CHAIN_OF_TRUST
#endif
#endif
#ifdef CONFIG_CHAIN_OF_TRUST #ifdef CONFIG_CHAIN_OF_TRUST
#define CONFIG_CMD_ESBC_VALIDATE #define CONFIG_CMD_ESBC_VALIDATE
#define CONFIG_FSL_SEC_MON #define CONFIG_FSL_SEC_MON
......
...@@ -9,11 +9,6 @@ ...@@ -9,11 +9,6 @@
#include <asm/config_mpc85xx.h> #include <asm/config_mpc85xx.h>
#ifdef CONFIG_SECURE_BOOT #ifdef CONFIG_SECURE_BOOT
#ifndef CONFIG_FIT_SIGNATURE
#define CONFIG_CHAIN_OF_TRUST
#endif
#if defined(CONFIG_FSL_CORENET) #if defined(CONFIG_FSL_CORENET)
#define CONFIG_SYS_PBI_FLASH_BASE 0xc0000000 #define CONFIG_SYS_PBI_FLASH_BASE 0xc0000000
#elif defined(CONFIG_TARGET_BSC9132QDS) #elif defined(CONFIG_TARGET_BSC9132QDS)
......
...@@ -9,4 +9,6 @@ config SYS_VENDOR ...@@ -9,4 +9,6 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "B4860QDS" default "B4860QDS"
source "board/freescale/common/Kconfig"
endif endif
...@@ -9,4 +9,6 @@ config SYS_VENDOR ...@@ -9,4 +9,6 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "BSC9132QDS" default "BSC9132QDS"
source "board/freescale/common/Kconfig"
endif endif
...@@ -9,4 +9,6 @@ config SYS_VENDOR ...@@ -9,4 +9,6 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "C29XPCIE" default "C29XPCIE"
source "board/freescale/common/Kconfig"
endif endif
config CHAIN_OF_TRUST
depends on !FIT_SIGNATURE && SECURE_BOOT
bool
default y
...@@ -9,6 +9,8 @@ config SYS_VENDOR ...@@ -9,6 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "P3041DS" default "P3041DS"
source "board/freescale/common/Kconfig"
endif endif
if TARGET_P4080DS if TARGET_P4080DS
...@@ -22,6 +24,8 @@ config SYS_VENDOR ...@@ -22,6 +24,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "P4080DS" default "P4080DS"
source "board/freescale/common/Kconfig"
endif endif
if TARGET_P5020DS if TARGET_P5020DS
...@@ -35,6 +39,8 @@ config SYS_VENDOR ...@@ -35,6 +39,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "P5020DS" default "P5020DS"
source "board/freescale/common/Kconfig"
endif endif
if TARGET_P5040DS if TARGET_P5040DS
...@@ -48,4 +54,6 @@ config SYS_VENDOR ...@@ -48,4 +54,6 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "P5040DS" default "P5040DS"
source "board/freescale/common/Kconfig"
endif endif
...@@ -12,4 +12,6 @@ config SYS_SOC ...@@ -12,4 +12,6 @@ config SYS_SOC
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "ls1012afrdm" default "ls1012afrdm"
source "board/freescale/common/Kconfig"
endif endif
...@@ -12,4 +12,6 @@ config SYS_SOC ...@@ -12,4 +12,6 @@ config SYS_SOC
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "ls1012aqds" default "ls1012aqds"
source "board/freescale/common/Kconfig"
endif endif
...@@ -12,4 +12,6 @@ config SYS_SOC ...@@ -12,4 +12,6 @@ config SYS_SOC
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "ls1012ardb" default "ls1012ardb"
source "board/freescale/common/Kconfig"
endif endif
...@@ -12,4 +12,6 @@ config SYS_SOC ...@@ -12,4 +12,6 @@ config SYS_SOC
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "ls1021aiot" default "ls1021aiot"
source "board/freescale/common/Kconfig"
endif endif
...@@ -12,4 +12,6 @@ config SYS_SOC ...@@ -12,4 +12,6 @@ config SYS_SOC
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "ls1021aqds" default "ls1021aqds"
source "board/freescale/common/Kconfig"
endif endif
...@@ -12,4 +12,6 @@ config SYS_SOC ...@@ -12,4 +12,6 @@ config SYS_SOC
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "ls1021atwr" default "ls1021atwr"
source "board/freescale/common/Kconfig"
endif endif
...@@ -12,4 +12,6 @@ config SYS_SOC ...@@ -12,4 +12,6 @@ config SYS_SOC
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "ls1043aqds" default "ls1043aqds"
source "board/freescale/common/Kconfig"
endif endif
...@@ -22,4 +22,6 @@ config SYS_HAS_ARMV8_SECURE_BASE ...@@ -22,4 +22,6 @@ config SYS_HAS_ARMV8_SECURE_BASE
If enabled, please also define the value for ARMV8_SECURE_BASE, If enabled, please also define the value for ARMV8_SECURE_BASE,
for LS1043ARDB, it could be some address in OCRAM. for LS1043ARDB, it could be some address in OCRAM.
source "board/freescale/common/Kconfig"
endif endif
...@@ -12,4 +12,6 @@ config SYS_SOC ...@@ -12,4 +12,6 @@ config SYS_SOC
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "ls1046aqds" default "ls1046aqds"
source "board/freescale/common/Kconfig"
endif endif
...@@ -12,6 +12,8 @@ config SYS_SOC ...@@ -12,6 +12,8 @@ config SYS_SOC
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "ls2080a_emu" default "ls2080a_emu"
source "board/freescale/common/Kconfig"
endif endif
if TARGET_LS2080A_SIMU if TARGET_LS2080A_SIMU
...@@ -28,4 +30,6 @@ config SYS_SOC ...@@ -28,4 +30,6 @@ config SYS_SOC
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "ls2080a_simu" default "ls2080a_simu"
source "board/freescale/common/Kconfig"
endif endif
...@@ -13,4 +13,6 @@ config SYS_SOC ...@@ -13,4 +13,6 @@ config SYS_SOC
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "ls2080aqds" default "ls2080aqds"
source "board/freescale/common/Kconfig"
endif endif
...@@ -13,4 +13,6 @@ config SYS_SOC ...@@ -13,4 +13,6 @@ config SYS_SOC
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "ls2080ardb" default "ls2080ardb"
source "board/freescale/common/Kconfig"
endif endif
...@@ -9,4 +9,6 @@ config SYS_VENDOR ...@@ -9,4 +9,6 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "P1010RDB" default "P1010RDB"
source "board/freescale/common/Kconfig"
endif endif
...@@ -9,4 +9,6 @@ config SYS_VENDOR ...@@ -9,4 +9,6 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "P2041RDB" default "P2041RDB"
source "board/freescale/common/Kconfig"
endif endif
...@@ -9,4 +9,6 @@ config SYS_VENDOR ...@@ -9,4 +9,6 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "T102xQDS" default "T102xQDS"
source "board/freescale/common/Kconfig"
endif endif
...@@ -9,4 +9,6 @@ config SYS_VENDOR ...@@ -9,4 +9,6 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "T102xRDB" default "T102xRDB"
source "board/freescale/common/Kconfig"
endif endif
...@@ -9,4 +9,6 @@ config SYS_VENDOR ...@@ -9,4 +9,6 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "T1040QDS" default "T1040QDS"
source "board/freescale/common/Kconfig"
endif endif
...@@ -11,4 +11,6 @@ config SYS_VENDOR ...@@ -11,4 +11,6 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "T104xRDB" default "T104xRDB"
source "board/freescale/common/Kconfig"
endif endif
...@@ -9,4 +9,6 @@ config SYS_VENDOR ...@@ -9,4 +9,6 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "T208xQDS" default "T208xQDS"
source "board/freescale/common/Kconfig"
endif endif
...@@ -9,4 +9,6 @@ config SYS_VENDOR ...@@ -9,4 +9,6 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "T208xRDB" default "T208xRDB"
source "board/freescale/common/Kconfig"
endif endif
...@@ -9,4 +9,6 @@ config SYS_VENDOR ...@@ -9,4 +9,6 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "T4240QDS" default "T4240QDS"
source "board/freescale/common/Kconfig"
endif endif
...@@ -9,4 +9,6 @@ config SYS_VENDOR ...@@ -9,4 +9,6 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "T4240RDB" default "T4240RDB"
source "board/freescale/common/Kconfig"
endif endif
...@@ -9,4 +9,6 @@ config SYS_VENDOR ...@@ -9,4 +9,6 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "cyrus" default "cyrus"
source "board/freescale/common/Kconfig"
endif endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment