]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Convert CONFIG_KSNET_NETCP_V1_0 et al to Kconfig
authorTom Rini <trini@konsulko.com>
Fri, 2 Dec 2022 21:42:32 +0000 (16:42 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 22 Dec 2022 15:31:48 +0000 (10:31 -0500)
This converts the following to Kconfig:
   CONFIG_KSNET_NETCP_V1_0
   CONFIG_KSNET_NETCP_V1_5

Signed-off-by: Tom Rini <trini@konsulko.com>
configs/k2hk_evm_defconfig
configs/k2hk_hs_evm_defconfig
drivers/net/ti/Kconfig
include/configs/k2e_evm.h
include/configs/k2g_evm.h
include/configs/k2hk_evm.h
include/configs/k2l_evm.h

index b0069fd60b0100eb9dec03e00acb20e2156402cf..2bcf2265c7ea6a53331e2bd6993c518e2782a9b4 100644 (file)
@@ -87,6 +87,7 @@ CONFIG_PHYLIB=y
 CONFIG_PHY_MARVELL=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_KEYSTONE_NET=y
+CONFIG_KSNET_NETCP_V1_0=y
 CONFIG_PHY=y
 CONFIG_NOP_PHY=y
 CONFIG_KEYSTONE_USB_PHY=y
index 9ca26ae61f51848efea416f23e38de85a1f38a06..94ab680343b9f5ed381aeef8620e5215bc8db1f2 100644 (file)
@@ -62,6 +62,7 @@ CONFIG_PHYLIB=y
 CONFIG_PHY_MARVELL=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_KEYSTONE_NET=y
+CONFIG_KSNET_NETCP_V1_0=y
 CONFIG_PHY=y
 CONFIG_NOP_PHY=y
 CONFIG_KEYSTONE_USB_PHY=y
index 59c96d862ddce4e07376b4160f7d87968b562684..e13dbc9401825c7a5d6a97611a496dc616e851f0 100644 (file)
@@ -25,6 +25,19 @@ config DRIVER_TI_KEYSTONE_NET
        help
           This driver supports the TI Keystone 2 Ethernet subsystem
 
+choice
+       prompt "TI Keystone 2 Ethernet NETCP IP revision"
+       depends on DRIVER_TI_KEYSTONE_NET
+       default KSNET_NETCP_V1_5
+
+config KSNET_NETCP_V1_0
+       bool "NETCP version 1.0"
+
+config KSNET_NETCP_V1_5
+       bool "NETCP version 1.5"
+
+endchoice
+
 config TI_AM65_CPSW_NUSS
        bool "TI K3 AM65x MCU CPSW Nuss Ethernet controller driver"
        depends on ARCH_K3
index 174a91c83e19b4d7d76c53b6fa96bdf5e6fe334b..1283f450b32c80095413c3e2c81943120f6b0655 100644 (file)
@@ -37,7 +37,6 @@
 #define SPI_MTD_PARTS KEYSTONE_SPI0_MTD_PARTS
 
 /* Network */
-#define CONFIG_KSNET_NETCP_V1_5
 #define CONFIG_KSNET_CPSW_NUM_PORTS    9
 
 #endif /* __CONFIG_K2E_EVM_H */
index dc06d5943e5c7352ab2b9bf29ebba7f6e662f6b8..fd3708ba81a771cb89d1a5d38cea3e1d5e63384c 100644 (file)
@@ -51,7 +51,6 @@
        "name_fs=arago-base-tisdk-image-k2g-evm.cpio\0"
 
 /* Network */
-#define CONFIG_KSNET_NETCP_V1_5
 #define CONFIG_KSNET_CPSW_NUM_PORTS    2
 #define PHY_ANEG_TIMEOUT       10000 /* PHY needs longer aneg time */
 
index 68cbe98b553bd52c01e983ace3f591510a78d5dd..36e3c59d1c5846b22c2c6994e7f7e68a69793d28 100644 (file)
@@ -37,7 +37,6 @@
 #define SPI_MTD_PARTS KEYSTONE_SPI0_MTD_PARTS
 
 /* Network */
-#define CONFIG_KSNET_NETCP_V1_0
 #define CONFIG_KSNET_CPSW_NUM_PORTS    5
 
 #endif /* __CONFIG_K2HK_EVM_H */
index 5d629452bae42f5138ef1b66351abb4c3d5196f3..cb7b0367810cd9067b18ac0fc7732a4ce8c1940f 100644 (file)
@@ -37,7 +37,6 @@
 #define SPI_MTD_PARTS KEYSTONE_SPI0_MTD_PARTS
 
 /* Network */
-#define CONFIG_KSNET_NETCP_V1_5
 #define CONFIG_KSNET_CPSW_NUM_PORTS    5
 
 #endif /* __CONFIG_K2L_EVM_H */