[U-Boot] [PATCHv6 03/28] net: core: Add PHY_GIGE as a Kconfig symbol

Olliver Schinagl oliver at schinagl.nl
Mon May 15 08:02:19 UTC 2017


Add the CONFIG_PHY_GIGE option as a hidden Kconfig symbol so that we
can select it from the menu as a dependency.

Signed-off-by: Olliver Schinagl <oliver at schinagl.nl>
---
 drivers/net/Kconfig            | 4 ++++
 include/configs/sunxi-common.h | 1 -
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 9cd0d94cbd..336557f395 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -155,6 +155,9 @@ config RGMII
 	  Enable the support of the Reduced Gigabit Media-Independent
 	  Interface (RGMII).
 
+config PHY_GIGE
+	bool
+
 config RTL8139
 	bool "Realtek 8139 series Ethernet controller driver"
 	help
@@ -169,6 +172,7 @@ config RTL8169
 
 config SUN7I_GMAC
 	bool "Enable Allwinner GMAC Ethernet support"
+	select PHY_GIGE
 	help
 	  Enable the support for Sun7i GMAC Ethernet controller
 
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index 997a92c8be..3d8a130f38 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -294,7 +294,6 @@ extern int soft_i2c_gpio_scl;
 #endif
 
 #ifdef CONFIG_SUNXI_GMAC
-#define CONFIG_PHY_GIGE			/* GMAC can use gigabit PHY	*/
 #define CONFIG_PHY_ADDR		1
 #define CONFIG_MII			/* MII PHY management		*/
 #define CONFIG_PHY_REALTEK
-- 
2.11.0



More information about the U-Boot mailing list