siemens: Move CONFIG_FACTORYSET to Kconfig
authorTom Rini <trini@konsulko.com>
Sat, 11 Jun 2022 02:59:35 +0000 (22:59 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 28 Jun 2022 21:04:38 +0000 (17:04 -0400)
Introduce board/siemens/common/Kconfig and have it hold FACTORYSET to
start with.  Use select for this on the boards that need it.

Cc: Anatolij Gustschin <agust@denx.de>
Cc: Samuel Egli <samuel.egli@siemens.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arm/Kconfig
arch/arm/mach-imx/imx8/Kconfig
arch/arm/mach-omap2/am33xx/Kconfig
board/siemens/common/Kconfig [new file with mode: 0644]
include/configs/capricorn-common.h
include/configs/draco.h
include/configs/etamin.h
include/configs/pxm2.h
include/configs/rastaban.h
include/configs/rut.h
include/configs/thuban.h

index ddef3d0..ef79fc3 100644 (file)
@@ -2352,6 +2352,7 @@ source "board/hisilicon/poplar/Kconfig"
 source "board/isee/igep003x/Kconfig"
 source "board/kontron/sl28/Kconfig"
 source "board/myir/mys_6ulx/Kconfig"
+source "board/siemens/common/Kconfig"
 source "board/seeed/npi_imx6ull/Kconfig"
 source "board/socionext/developerbox/Kconfig"
 source "board/st/stv0991/Kconfig"
index 5e1b20a..8f185c1 100644 (file)
@@ -57,11 +57,13 @@ config TARGET_COLIBRI_IMX8X
 config TARGET_DENEB
        bool "Support i.MX8QXP Capricorn Deneb board"
        select BOARD_LATE_INIT
+       select FACTORYSET
        select IMX8QXP
 
 config TARGET_GIEDI
        bool "Support i.MX8QXP Capricorn Giedi board"
        select BOARD_LATE_INIT
+       select FACTORYSET
        select IMX8QXP
 
 config TARGET_IMX8QM_MEK
index 23865d4..bd6b086 100644 (file)
@@ -138,6 +138,7 @@ config TARGET_DRACO
        select DM
        select DM_GPIO
        select DM_SERIAL
+       select FACTORYSET
        imply CMD_DM
 
 config TARGET_ETAMIN
@@ -146,6 +147,7 @@ config TARGET_ETAMIN
        select DM
        select DM_GPIO
        select DM_SERIAL
+       select FACTORYSET
        imply CMD_DM
 
 config TARGET_PCM051
@@ -168,6 +170,7 @@ config TARGET_PXM2
        select DM
        select DM_GPIO
        select DM_SERIAL
+       select FACTORYSET
        imply CMD_DM
 
 config TARGET_RASTABAN
@@ -176,6 +179,7 @@ config TARGET_RASTABAN
        select DM
        select DM_GPIO
        select DM_SERIAL
+       select FACTORYSET
        imply CMD_DM
 
 config TARGET_RUT
@@ -184,6 +188,7 @@ config TARGET_RUT
        select DM
        select DM_GPIO
        select DM_SERIAL
+       select FACTORYSET
        imply CMD_DM
 
 config TARGET_THUBAN
@@ -192,6 +197,7 @@ config TARGET_THUBAN
        select DM
        select DM_GPIO
        select DM_SERIAL
+       select FACTORYSET
        imply CMD_DM
 
 config TARGET_PDU001
diff --git a/board/siemens/common/Kconfig b/board/siemens/common/Kconfig
new file mode 100644 (file)
index 0000000..131439f
--- /dev/null
@@ -0,0 +1,2 @@
+config FACTORYSET
+       bool
index 0bbfe0c..4f0d69d 100644 (file)
@@ -23,8 +23,6 @@
 
 #endif /* CONFIG_SPL_BUILD */
 
-#define CONFIG_FACTORYSET
-
 /* ENET1 connects to base board and MUX with ESAI */
 #define CONFIG_FEC_ENET_DEV            1
 #define CONFIG_FEC_MXC_PHYADDR         0x0
index d305608..b4998f5 100644 (file)
@@ -27,8 +27,6 @@
  /* Physical Memory Map */
 #define CONFIG_MAX_RAM_BANK_SIZE       (1024 << 20)    /* 1GB */
 
-#define CONFIG_FACTORYSET
-
 /* Define own nand partitions */
 #define CONFIG_ENV_RANGE        (4 * CONFIG_SYS_ENV_SECT_SIZE)
 
index 654faed..654bfc6 100644 (file)
@@ -75,8 +75,6 @@
 #define EEPROM_ADDR_DDR3 0x90
 #define EEPROM_ADDR_CHIP 0x120
 
-#define CONFIG_FACTORYSET
-
 /* nedded by compliance test in read mode */
 
 /* Define own nand partitions */
index 7272470..ad05920 100644 (file)
@@ -30,8 +30,6 @@
  /* Physical Memory Map */
 #define CONFIG_MAX_RAM_BANK_SIZE       (512 << 20)     /* 1GB */
 
-#define CONFIG_FACTORYSET
-
 #ifndef CONFIG_SPL_BUILD
 
 /* Use common default */
index 8e20a44..6c942a8 100644 (file)
@@ -37,8 +37,6 @@
 #define EEPROM_ADDR_DDR3 0x90
 #define EEPROM_ADDR_CHIP 0x120
 
-#define CONFIG_FACTORYSET
-
 /* Define own nand partitions */
 #define CONFIG_ENV_RANGE               (4 * CONFIG_SYS_ENV_SECT_SIZE)
 
index b30b12a..fc31946 100644 (file)
@@ -21,8 +21,6 @@
  /* Physical Memory Map */
 #define CONFIG_MAX_RAM_BANK_SIZE       (256 << 20) /* 256 MiB */
 
-#define CONFIG_FACTORYSET
-
 /* Watchdog */
 #define WATCHDOG_TRIGGER_GPIO  14
 
index 3b12007..bb0b9fa 100644 (file)
@@ -30,8 +30,6 @@
 #define EEPROM_ADDR_DDR3 0x90
 #define EEPROM_ADDR_CHIP 0x120
 
-#define CONFIG_FACTORYSET
-
 /* Define own nand partitions */
 #define CONFIG_ENV_RANGE        (4 * CONFIG_SYS_ENV_SECT_SIZE)