Skip to content
Snippets Groups Projects
Commit 25af71c4 authored by Thomas Chou's avatar Thomas Chou Committed by Marek Vasut
Browse files

net: eth_designware: select PHYLIB in Kconfig


Select PHYLIB in drivers/net/Kconfig. And remove CONFIG_PHYLIB
from legacy board header files.

This fixed the warnings when both ALTERA_TSE and ETH_DESIGNWARE
are selected.

Signed-off-by: default avatarThomas Chou <thomas@wytron.com.tw>
Reported-by: default avatarPavel Machek <pavel@denx.de>
Acked-by: default avatarChin Liang See <clsee@altera.com>
Acked-by: default avatarPavel Machek <pavel@denx.de>
Tested-by: default avatarPavel Machek <pavel@denx.de>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 07806977
No related branches found
No related tags found
No related merge requests found
...@@ -88,6 +88,7 @@ config ETH_SANDBOX_RAW ...@@ -88,6 +88,7 @@ config ETH_SANDBOX_RAW
config ETH_DESIGNWARE config ETH_DESIGNWARE
bool "Synopsys Designware Ethernet MAC" bool "Synopsys Designware Ethernet MAC"
select PHYLIB
help help
This MAC is present in SoCs from various vendors. It supports This MAC is present in SoCs from various vendors. It supports
100Mbit and 1 Gbit operation. You must enable CONFIG_PHYLIB to 100Mbit and 1 Gbit operation. You must enable CONFIG_PHYLIB to
......
...@@ -22,10 +22,6 @@ ...@@ -22,10 +22,6 @@
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
#if !defined(CONFIG_PHYLIB)
# error "DesignWare Ether MAC requires PHYLIB - missing CONFIG_PHYLIB"
#endif
static int dw_mdio_read(struct mii_dev *bus, int addr, int devad, int reg) static int dw_mdio_read(struct mii_dev *bus, int addr, int devad, int reg)
{ {
struct eth_mac_regs *mac_p = bus->priv; struct eth_mac_regs *mac_p = bus->priv;
......
...@@ -95,7 +95,6 @@ ...@@ -95,7 +95,6 @@
/* /*
* Ethernet PHY configuration * Ethernet PHY configuration
*/ */
#define CONFIG_PHYLIB
#define CONFIG_MII #define CONFIG_MII
#define CONFIG_PHY_GIGE #define CONFIG_PHY_GIGE
......
...@@ -75,7 +75,6 @@ ...@@ -75,7 +75,6 @@
#define CONFIG_DW_ALTDESCRIPTOR #define CONFIG_DW_ALTDESCRIPTOR
#define CONFIG_CMD_MII #define CONFIG_CMD_MII
#define CONFIG_MII #define CONFIG_MII
#define CONFIG_PHYLIB
/* i2c Settings */ /* i2c Settings */
#define CONFIG_SYS_I2C #define CONFIG_SYS_I2C
......
...@@ -45,7 +45,6 @@ ...@@ -45,7 +45,6 @@
/* 10/100M Ethernet support */ /* 10/100M Ethernet support */
#define CONFIG_DESIGNWARE_ETH #define CONFIG_DESIGNWARE_ETH
#define CONFIG_DW_ALTDESCRIPTOR #define CONFIG_DW_ALTDESCRIPTOR
#define CONFIG_PHYLIB
/* Environment configuration */ /* Environment configuration */
#define CONFIG_ENV_SECT_SIZE 0x1000 #define CONFIG_ENV_SECT_SIZE 0x1000
......
...@@ -109,7 +109,6 @@ ...@@ -109,7 +109,6 @@
#define CONFIG_DW_ALTDESCRIPTOR #define CONFIG_DW_ALTDESCRIPTOR
#define CONFIG_MII #define CONFIG_MII
#define CONFIG_AUTONEG_TIMEOUT (15 * CONFIG_SYS_HZ) #define CONFIG_AUTONEG_TIMEOUT (15 * CONFIG_SYS_HZ)
#define CONFIG_PHYLIB
#define CONFIG_PHY_GIGE #define CONFIG_PHY_GIGE
#endif #endif
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
/* Ethernet driver configuration */ /* Ethernet driver configuration */
#define CONFIG_MII #define CONFIG_MII
#define CONFIG_PHYLIB
#define CONFIG_PHY_RESET_DELAY 10000 /* in usec */ #define CONFIG_PHY_RESET_DELAY 10000 /* in usec */
#define CONFIG_PHY_GIGE /* Include GbE speed/duplex detection */ #define CONFIG_PHY_GIGE /* Include GbE speed/duplex detection */
......
...@@ -53,7 +53,6 @@ ...@@ -53,7 +53,6 @@
/* GMAC related configs */ /* GMAC related configs */
#define CONFIG_MII #define CONFIG_MII
#define CONFIG_PHYLIB
#define CONFIG_DW_ALTDESCRIPTOR #define CONFIG_DW_ALTDESCRIPTOR
#define CONFIG_PHY_MICREL #define CONFIG_PHY_MICREL
......
...@@ -313,7 +313,6 @@ extern int soft_i2c_gpio_scl; ...@@ -313,7 +313,6 @@ extern int soft_i2c_gpio_scl;
#define CONFIG_PHY_GIGE /* GMAC can use gigabit PHY */ #define CONFIG_PHY_GIGE /* GMAC can use gigabit PHY */
#define CONFIG_PHY_ADDR 1 #define CONFIG_PHY_ADDR 1
#define CONFIG_MII /* MII PHY management */ #define CONFIG_MII /* MII PHY management */
#define CONFIG_PHYLIB
#endif #endif
#ifdef CONFIG_USB_EHCI_HCD #ifdef CONFIG_USB_EHCI_HCD
......
...@@ -42,7 +42,6 @@ ...@@ -42,7 +42,6 @@
/* /*
* Ethernet PHY configuration * Ethernet PHY configuration
*/ */
#define CONFIG_PHYLIB
#define CONFIG_PHY_GIGE #define CONFIG_PHY_GIGE
/* /*
......
...@@ -77,7 +77,6 @@ ...@@ -77,7 +77,6 @@
/* Ethernet config options */ /* Ethernet config options */
#define CONFIG_MII #define CONFIG_MII
#define CONFIG_PHYLIB
#define CONFIG_PHY_RESET_DELAY 10000 /* in usec */ #define CONFIG_PHY_RESET_DELAY 10000 /* in usec */
#define CONFIG_PHY_ADDR 0 /* PHY address */ #define CONFIG_PHY_ADDR 0 /* PHY address */
#define CONFIG_PHY_GIGE /* Include GbE speed/duplex detection */ #define CONFIG_PHY_GIGE /* Include GbE speed/duplex detection */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment