From e2ffee6356a235aa779fb289970beccff48791aa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Fri, 12 Jun 2015 10:55:59 +0200 Subject: [PATCH 1/1] kconfig: add Kconfig option for CMD_MII --- common/Kconfig | 5 +++++ configs/tx28-40x1_defconfig | 1 + configs/tx28-40x1_noenv_defconfig | 1 + configs/tx28-40x2_defconfig | 1 + configs/tx28-40x2_noenv_defconfig | 1 + configs/tx28-40x3_defconfig | 1 + configs/tx28-40x3_noenv_defconfig | 1 + configs/tx28-41x0_defconfig | 1 + configs/tx28-41x0_noenv_defconfig | 1 + include/configs/tx28.h | 1 - include/configs/tx48.h | 1 - include/configs/tx51.h | 1 - include/configs/tx53.h | 1 - 13 files changed, 13 insertions(+), 4 deletions(-) diff --git a/common/Kconfig b/common/Kconfig index b6a4554d82..1f361555dc 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -325,6 +325,11 @@ config CMD_LINK_LOCAL help Acquire a network IP address using the link-local protocol +config CMD_MII + bool "MII register access" + help + Support reading/writing ETH PHY registers via MII bus + endmenu menu "Misc commands" diff --git a/configs/tx28-40x1_defconfig b/configs/tx28-40x1_defconfig index ba497af8d4..f88d7389d6 100644 --- a/configs/tx28-40x1_defconfig +++ b/configs/tx28-40x1_defconfig @@ -12,6 +12,7 @@ CONFIG_CMD_CACHE=y CONFIG_CMD_DHCP=y CONFIG_CMD_MEMTEST=y CONFIG_CMD_MEMINFO=y +CONFIG_CMD_MII=y CONFIG_CMD_MMC=y CONFIG_CMD_MTDPARTS=y CONFIG_CMD_NAND=y diff --git a/configs/tx28-40x1_noenv_defconfig b/configs/tx28-40x1_noenv_defconfig index 6fbfc934b7..5875b8517d 100644 --- a/configs/tx28-40x1_noenv_defconfig +++ b/configs/tx28-40x1_noenv_defconfig @@ -12,6 +12,7 @@ CONFIG_CMD_CACHE=y CONFIG_CMD_DHCP=y CONFIG_CMD_MEMTEST=y CONFIG_CMD_MEMINFO=y +CONFIG_CMD_MII=y CONFIG_CMD_MMC=y CONFIG_CMD_MTDPARTS=y CONFIG_CMD_NAND=y diff --git a/configs/tx28-40x2_defconfig b/configs/tx28-40x2_defconfig index bfd1b080e5..653fd46f80 100644 --- a/configs/tx28-40x2_defconfig +++ b/configs/tx28-40x2_defconfig @@ -12,6 +12,7 @@ CONFIG_CMD_CACHE=y CONFIG_CMD_DHCP=y CONFIG_CMD_MEMTEST=y CONFIG_CMD_MEMINFO=y +CONFIG_CMD_MII=y CONFIG_CMD_MMC=y CONFIG_CMD_MTDPARTS=y CONFIG_CMD_NAND=y diff --git a/configs/tx28-40x2_noenv_defconfig b/configs/tx28-40x2_noenv_defconfig index fa90e4d0b7..9172f1b23f 100644 --- a/configs/tx28-40x2_noenv_defconfig +++ b/configs/tx28-40x2_noenv_defconfig @@ -12,6 +12,7 @@ CONFIG_CMD_CACHE=y CONFIG_CMD_DHCP=y CONFIG_CMD_MEMTEST=y CONFIG_CMD_MEMINFO=y +CONFIG_CMD_MII=y CONFIG_CMD_MMC=y CONFIG_CMD_MTDPARTS=y CONFIG_CMD_NAND=y diff --git a/configs/tx28-40x3_defconfig b/configs/tx28-40x3_defconfig index 717da7350c..2cb2b28186 100644 --- a/configs/tx28-40x3_defconfig +++ b/configs/tx28-40x3_defconfig @@ -12,6 +12,7 @@ CONFIG_CMD_CACHE=y CONFIG_CMD_DHCP=y CONFIG_CMD_MEMTEST=y CONFIG_CMD_MEMINFO=y +CONFIG_CMD_MII=y CONFIG_CMD_MMC=y CONFIG_CMD_MTDPARTS=y CONFIG_CMD_NAND=y diff --git a/configs/tx28-40x3_noenv_defconfig b/configs/tx28-40x3_noenv_defconfig index 12f3b9531c..785acf0ef3 100644 --- a/configs/tx28-40x3_noenv_defconfig +++ b/configs/tx28-40x3_noenv_defconfig @@ -12,6 +12,7 @@ CONFIG_CMD_CACHE=y CONFIG_CMD_DHCP=y CONFIG_CMD_MEMTEST=y CONFIG_CMD_MEMINFO=y +CONFIG_CMD_MII=y CONFIG_CMD_MMC=y CONFIG_CMD_MTDPARTS=y CONFIG_CMD_NAND=y diff --git a/configs/tx28-41x0_defconfig b/configs/tx28-41x0_defconfig index 452e1fc63c..12b2e95feb 100644 --- a/configs/tx28-41x0_defconfig +++ b/configs/tx28-41x0_defconfig @@ -12,6 +12,7 @@ CONFIG_CMD_CACHE=y CONFIG_CMD_DHCP=y CONFIG_CMD_MEMTEST=y CONFIG_CMD_MEMINFO=y +CONFIG_CMD_MII=y CONFIG_CMD_MMC=y CONFIG_CMD_MTDPARTS=y CONFIG_CMD_NAND=y diff --git a/configs/tx28-41x0_noenv_defconfig b/configs/tx28-41x0_noenv_defconfig index fe0b4fa8e9..18f18f334c 100644 --- a/configs/tx28-41x0_noenv_defconfig +++ b/configs/tx28-41x0_noenv_defconfig @@ -12,6 +12,7 @@ CONFIG_CMD_CACHE=y CONFIG_CMD_DHCP=y CONFIG_CMD_MEMTEST=y CONFIG_CMD_MEMINFO=y +CONFIG_CMD_MII=y CONFIG_CMD_MMC=y CONFIG_CMD_MTDPARTS=y CONFIG_CMD_NAND=y diff --git a/include/configs/tx28.h b/include/configs/tx28.h index c7e54471ac..a8e4df1ffc 100644 --- a/include/configs/tx28.h +++ b/include/configs/tx28.h @@ -189,7 +189,6 @@ #endif #define CONFIG_FEC_XCV_TYPE RMII -#define CONFIG_CMD_MII /* Add for working with "strict" DHCP server */ #define CONFIG_BOOTP_SUBNETMASK #define CONFIG_BOOTP_GATEWAY diff --git a/include/configs/tx48.h b/include/configs/tx48.h index 1e7f6af863..e63b08074a 100644 --- a/include/configs/tx48.h +++ b/include/configs/tx48.h @@ -185,7 +185,6 @@ #ifdef CONFIG_CMD_NET #define CONFIG_DRIVER_TI_CPSW #define CONFIG_PHY_GIGE -#define CONFIG_CMD_MII /* Add for working with "strict" DHCP server */ #define CONFIG_BOOTP_SUBNETMASK #define CONFIG_BOOTP_GATEWAY diff --git a/include/configs/tx51.h b/include/configs/tx51.h index f59018ca8e..e8d9355c02 100644 --- a/include/configs/tx51.h +++ b/include/configs/tx51.h @@ -172,7 +172,6 @@ #ifdef CONFIG_FEC_MXC #define IMX_FEC_BASE FEC_BASE_ADDR #define CONFIG_FEC_XCV_TYPE MII100 -#define CONFIG_CMD_MII /* Add for working with "strict" DHCP server */ #define CONFIG_BOOTP_SUBNETMASK #define CONFIG_BOOTP_GATEWAY diff --git a/include/configs/tx53.h b/include/configs/tx53.h index dd8e248dec..6db8f52730 100644 --- a/include/configs/tx53.h +++ b/include/configs/tx53.h @@ -174,7 +174,6 @@ #define IMX_FEC_BASE FEC_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0 #define CONFIG_FEC_XCV_TYPE MII100 -#define CONFIG_CMD_MII /* Add for working with "strict" DHCP server */ #define CONFIG_BOOTP_SUBNETMASK #define CONFIG_BOOTP_GATEWAY -- 2.39.2