From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olliver Schinagl Date: Mon, 15 May 2017 10:02:19 +0200 Subject: [U-Boot] [PATCHv6 03/28] net: core: Add PHY_GIGE as a Kconfig symbol In-Reply-To: <20170515080244.21345-1-oliver@schinagl.nl> References: <20170515080244.21345-1-oliver@schinagl.nl> Message-ID: <20170515080244.21345-4-oliver@schinagl.nl> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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