diff mbox

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

Message ID 20170515080244.21345-4-oliver@schinagl.nl
State Changes Requested
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Commit Message

Olliver Schinagl May 15, 2017, 8:02 a.m. UTC
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@schinagl.nl>
---
 drivers/net/Kconfig            | 4 ++++
 include/configs/sunxi-common.h | 1 -
 2 files changed, 4 insertions(+), 1 deletion(-)

Comments

Tom Rini May 15, 2017, 12:47 p.m. UTC | #1
On Mon, May 15, 2017 at 10:02:19AM +0200, Olliver Schinagl wrote:

> 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@schinagl.nl>

Reviewed-by: Tom Rini <trini@konsulko.com>
Joe Hershberger May 30, 2017, 8:45 p.m. UTC | #2
On Mon, May 15, 2017 at 3:02 AM, Olliver Schinagl <oliver@schinagl.nl> wrote:
> 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@schinagl.nl>

Acked-by: Joe Hershberger <joe.hershberger@ni.com>
diff mbox

Patch

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