]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ti: keystone: Migrate CONFIG_SOC_K2* to Kconfig
authorTom Rini <trini@konsulko.com>
Mon, 13 Sep 2021 00:32:33 +0000 (20:32 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 28 Sep 2021 01:38:34 +0000 (21:38 -0400)
Move the individual keystone 2 SoC symbols to the mach Kconfig file,
select them as needed.

Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arm/mach-keystone/Kconfig
include/configs/k2e_evm.h
include/configs/k2g_evm.h
include/configs/k2hk_evm.h
include/configs/k2l_evm.h

index e06eba5aea1fb25c27528559326f1514855ef607..94e6fe1f228527850daa14898105cf969aa87f4c 100644 (file)
@@ -6,6 +6,7 @@ choice
 
 config TARGET_K2HK_EVM
        bool "TI Keystone 2 Kepler/Hawking EVM"
+       select SOC_K2HK
        select SPL_BOARD_INIT if SPL
        select CMD_DDR3
        imply DM_I2C
@@ -14,6 +15,7 @@ config TARGET_K2HK_EVM
 
 config TARGET_K2E_EVM
        bool "TI Keystone 2 Edison EVM"
+       select SOC_K2E
        select SPL_BOARD_INIT if SPL
        select CMD_DDR3
        imply DM_I2C
@@ -22,6 +24,7 @@ config TARGET_K2E_EVM
 
 config TARGET_K2L_EVM
        bool "TI Keystone 2 Lamar EVM"
+       select SOC_K2L
        select SPL_BOARD_INIT if SPL
        select CMD_DDR3
        imply DM_I2C
@@ -31,6 +34,7 @@ config TARGET_K2L_EVM
 config TARGET_K2G_EVM
        bool "TI Keystone 2 Galileo EVM"
         select BOARD_LATE_INIT
+       select SOC_K2G
        select SPL_BOARD_INIT if SPL
         select TI_I2C_BOARD_DETECT
        select CMD_DDR3
@@ -40,6 +44,18 @@ config TARGET_K2G_EVM
 
 endchoice
 
+config SOC_K2E
+       bool
+
+config SOC_K2G
+       bool
+
+config SOC_K2HK
+       bool
+
+config SOC_K2L
+       bool
+
 config SYS_SOC
        default "keystone"
 
index 35439c02581a33ed6b39b7aa7837f779e217c5ef..9b25c34982235f96752d802b2b1820e5f00ee766 100644 (file)
@@ -11,9 +11,6 @@
 
 #include <environment/ti/spi.h>
 
-/* Platform type */
-#define CONFIG_SOC_K2E
-
 #ifdef CONFIG_TI_SECURE_DEVICE
 #define DEFAULT_SEC_BOOT_ENV                                           \
        DEFAULT_FIT_TI_ARGS                                             \
index 17245ab1586140a8f901f9af58dd73144015f65d..56dd9c72d9491e2cf88eb2ac86866b40caefef19 100644 (file)
@@ -12,9 +12,6 @@
 #include <environment/ti/mmc.h>
 #include <environment/ti/spi.h>
 
-/* Platform type */
-#define CONFIG_SOC_K2G
-
 /* U-Boot general configuration */
 #define ENV_KS2_BOARD_SETTINGS                                         \
        DEFAULT_MMC_TI_ARGS                                             \
index f5a20ce02b06fb40ee8300a2397cbbe885c088fe..cfc34c7da6d7334b130ec0d4d509c9736cbb14d6 100644 (file)
@@ -11,9 +11,6 @@
 
 #include <environment/ti/spi.h>
 
-/* Platform type */
-#define CONFIG_SOC_K2HK
-
 #ifdef CONFIG_TI_SECURE_DEVICE
 #define DEFAULT_SEC_BOOT_ENV                                           \
        DEFAULT_FIT_TI_ARGS                                             \
index 97512c9903de0dc1854f903d0466768fd9e5912f..65988fff06ed3ae175d76cfee208aa1b0bbe40d5 100644 (file)
@@ -11,9 +11,6 @@
 
 #include <environment/ti/spi.h>
 
-/* Platform type */
-#define CONFIG_SOC_K2L
-
 #ifdef CONFIG_TI_SECURE_DEVICE
 #define DEFAULT_SEC_BOOT_ENV                                           \
        DEFAULT_FIT_TI_ARGS                                             \