NXP: Introduce board/freescale/common/Kconfig and migrate CHAIN_OF_TRUST
authorTom Rini <trini@konsulko.com>
Mon, 23 Jan 2017 00:43:10 +0000 (19:43 -0500)
committerTom Rini <trini@konsulko.com>
Tue, 24 Jan 2017 15:33:59 +0000 (10:33 -0500)
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: Tom Rini <trini@konsulko.com>
Reviewed-by: York Sun <york.sun@nxp.com>
30 files changed:
arch/arm/include/asm/fsl_secure_boot.h
arch/powerpc/include/asm/fsl_secure_boot.h
board/freescale/b4860qds/Kconfig
board/freescale/bsc9132qds/Kconfig
board/freescale/c29xpcie/Kconfig
board/freescale/common/Kconfig [new file with mode: 0644]
board/freescale/corenet_ds/Kconfig
board/freescale/ls1012afrdm/Kconfig
board/freescale/ls1012aqds/Kconfig
board/freescale/ls1012ardb/Kconfig
board/freescale/ls1021aiot/Kconfig
board/freescale/ls1021aqds/Kconfig
board/freescale/ls1021atwr/Kconfig
board/freescale/ls1043aqds/Kconfig
board/freescale/ls1043ardb/Kconfig
board/freescale/ls1046aqds/Kconfig
board/freescale/ls2080a/Kconfig
board/freescale/ls2080aqds/Kconfig
board/freescale/ls2080ardb/Kconfig
board/freescale/p1010rdb/Kconfig
board/freescale/p2041rdb/Kconfig
board/freescale/t102xqds/Kconfig
board/freescale/t102xrdb/Kconfig
board/freescale/t1040qds/Kconfig
board/freescale/t104xrdb/Kconfig
board/freescale/t208xqds/Kconfig
board/freescale/t208xrdb/Kconfig
board/freescale/t4qds/Kconfig
board/freescale/t4rdb/Kconfig
board/varisys/cyrus/Kconfig

index f920215..17ca540 100644 (file)
@@ -7,14 +7,6 @@
 #ifndef __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
 #define CONFIG_CMD_ESBC_VALIDATE
 #define CONFIG_FSL_SEC_MON
index ab29579..e17ead5 100644 (file)
@@ -9,11 +9,6 @@
 #include <asm/config_mpc85xx.h>
 
 #ifdef CONFIG_SECURE_BOOT
-
-#ifndef CONFIG_FIT_SIGNATURE
-#define CONFIG_CHAIN_OF_TRUST
-#endif
-
 #if defined(CONFIG_FSL_CORENET)
 #define CONFIG_SYS_PBI_FLASH_BASE              0xc0000000
 #elif defined(CONFIG_TARGET_BSC9132QDS)
index 01d68e1..9bb667a 100644 (file)
@@ -9,4 +9,6 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "B4860QDS"
 
+source "board/freescale/common/Kconfig"
+
 endif
index db3a1f1..e5499e6 100644 (file)
@@ -9,4 +9,6 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "BSC9132QDS"
 
+source "board/freescale/common/Kconfig"
+
 endif
index 17369b8..51e25c3 100644 (file)
@@ -9,4 +9,6 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "C29XPCIE"
 
+source "board/freescale/common/Kconfig"
+
 endif
diff --git a/board/freescale/common/Kconfig b/board/freescale/common/Kconfig
new file mode 100644 (file)
index 0000000..38babd3
--- /dev/null
@@ -0,0 +1,4 @@
+config CHAIN_OF_TRUST
+       depends on !FIT_SIGNATURE && SECURE_BOOT
+       bool
+       default y
index 433f539..98b1add 100644 (file)
@@ -9,6 +9,8 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "P3041DS"
 
+source "board/freescale/common/Kconfig"
+
 endif
 
 if TARGET_P4080DS
@@ -22,6 +24,8 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "P4080DS"
 
+source "board/freescale/common/Kconfig"
+
 endif
 
 if TARGET_P5020DS
@@ -35,6 +39,8 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "P5020DS"
 
+source "board/freescale/common/Kconfig"
+
 endif
 
 if TARGET_P5040DS
@@ -48,4 +54,6 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "P5040DS"
 
+source "board/freescale/common/Kconfig"
+
 endif
index a34521c..38bd91b 100644 (file)
@@ -12,4 +12,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1012afrdm"
 
+source "board/freescale/common/Kconfig"
+
 endif
index 1257ec8..fc9250b 100644 (file)
@@ -12,4 +12,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1012aqds"
 
+source "board/freescale/common/Kconfig"
+
 endif
index 3f67c28..98231f9 100644 (file)
@@ -12,4 +12,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1012ardb"
 
+source "board/freescale/common/Kconfig"
+
 endif
index 4a12c16..c6b1606 100644 (file)
@@ -12,4 +12,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1021aiot"
 
+source "board/freescale/common/Kconfig"
+
 endif
index 119b955..60b8472 100644 (file)
@@ -12,4 +12,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1021aqds"
 
+source "board/freescale/common/Kconfig"
+
 endif
index bc50b8d..a4641cb 100644 (file)
@@ -12,4 +12,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1021atwr"
 
+source "board/freescale/common/Kconfig"
+
 endif
index 7e27f8f..95d2888 100644 (file)
@@ -12,4 +12,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1043aqds"
 
+source "board/freescale/common/Kconfig"
+
 endif
index 80203a4..1bab7ca 100644 (file)
@@ -22,4 +22,6 @@ config SYS_HAS_ARMV8_SECURE_BASE
          If enabled, please also define the value for ARMV8_SECURE_BASE,
          for LS1043ARDB, it could be some address in OCRAM.
 
+source "board/freescale/common/Kconfig"
+
 endif
index 723f4ba..070827d 100644 (file)
@@ -12,4 +12,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls1046aqds"
 
+source "board/freescale/common/Kconfig"
+
 endif
index 0b938ff..b503351 100644 (file)
@@ -12,6 +12,8 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls2080a_emu"
 
+source "board/freescale/common/Kconfig"
+
 endif
 
 if TARGET_LS2080A_SIMU
@@ -28,4 +30,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls2080a_simu"
 
+source "board/freescale/common/Kconfig"
+
 endif
index 2f997e9..e2b2c8d 100644 (file)
@@ -13,4 +13,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls2080aqds"
 
+source "board/freescale/common/Kconfig"
+
 endif
index fe02575..2f0465f 100644 (file)
@@ -13,4 +13,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ls2080ardb"
 
+source "board/freescale/common/Kconfig"
+
 endif
index 159bcc4..3adac4a 100644 (file)
@@ -9,4 +9,6 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "P1010RDB"
 
+source "board/freescale/common/Kconfig"
+
 endif
index 78e1121..7e187dd 100644 (file)
@@ -9,4 +9,6 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "P2041RDB"
 
+source "board/freescale/common/Kconfig"
+
 endif
index 6ee7468..87818a8 100644 (file)
@@ -9,4 +9,6 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "T102xQDS"
 
+source "board/freescale/common/Kconfig"
+
 endif
index d538386..6deeb24 100644 (file)
@@ -9,4 +9,6 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "T102xRDB"
 
+source "board/freescale/common/Kconfig"
+
 endif
index 1bb1684..ec3ff0c 100644 (file)
@@ -9,4 +9,6 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "T1040QDS"
 
+source "board/freescale/common/Kconfig"
+
 endif
index e33d317..e6e46fa 100644 (file)
@@ -11,4 +11,6 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "T104xRDB"
 
+source "board/freescale/common/Kconfig"
+
 endif
index 26ef530..5a435c2 100644 (file)
@@ -9,4 +9,6 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "T208xQDS"
 
+source "board/freescale/common/Kconfig"
+
 endif
index 71e1130..6f0b012 100644 (file)
@@ -9,4 +9,6 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "T208xRDB"
 
+source "board/freescale/common/Kconfig"
+
 endif
index 563a87c..f7c1a0c 100644 (file)
@@ -9,4 +9,6 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "T4240QDS"
 
+source "board/freescale/common/Kconfig"
+
 endif
index 67832da..a94a57e 100644 (file)
@@ -9,4 +9,6 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "T4240RDB"
 
+source "board/freescale/common/Kconfig"
+
 endif
index c7b5253..a0389f8 100644 (file)
@@ -9,4 +9,6 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "cyrus"
 
+source "board/freescale/common/Kconfig"
+
 endif