Commit 25af71c4bfcd54a88cc9098f23416fe9d1f7d80c

Authored by Thomas Chou
Committed by Marek Vasut
1 parent 0780697787

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: Thomas Chou <thomas@wytron.com.tw>
Reported-by: Pavel Machek <pavel@denx.de>
Acked-by: Chin Liang See <clsee@altera.com>
Acked-by: Pavel Machek <pavel@denx.de>
Tested-by: Pavel Machek <pavel@denx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

Showing 11 changed files with 1 additions and 13 deletions Side-by-side Diff

... ... @@ -88,6 +88,7 @@
88 88  
89 89 config ETH_DESIGNWARE
90 90 bool "Synopsys Designware Ethernet MAC"
  91 + select PHYLIB
91 92 help
92 93 This MAC is present in SoCs from various vendors. It supports
93 94 100Mbit and 1 Gbit operation. You must enable CONFIG_PHYLIB to
drivers/net/designware.c
... ... @@ -22,10 +22,6 @@
22 22  
23 23 DECLARE_GLOBAL_DATA_PTR;
24 24  
25   -#if !defined(CONFIG_PHYLIB)
26   -# error "DesignWare Ether MAC requires PHYLIB - missing CONFIG_PHYLIB"
27   -#endif
28   -
29 25 static int dw_mdio_read(struct mii_dev *bus, int addr, int devad, int reg)
30 26 {
31 27 struct eth_mac_regs *mac_p = bus->priv;
include/configs/axs101.h
... ... @@ -95,7 +95,6 @@
95 95 /*
96 96 * Ethernet PHY configuration
97 97 */
98   -#define CONFIG_PHYLIB
99 98 #define CONFIG_MII
100 99 #define CONFIG_PHY_GIGE
101 100  
include/configs/bf609-ezkit.h
... ... @@ -75,7 +75,6 @@
75 75 #define CONFIG_DW_ALTDESCRIPTOR
76 76 #define CONFIG_CMD_MII
77 77 #define CONFIG_MII
78   -#define CONFIG_PHYLIB
79 78  
80 79 /* i2c Settings */
81 80 #define CONFIG_SYS_I2C
include/configs/galileo.h
... ... @@ -45,7 +45,6 @@
45 45 /* 10/100M Ethernet support */
46 46 #define CONFIG_DESIGNWARE_ETH
47 47 #define CONFIG_DW_ALTDESCRIPTOR
48   -#define CONFIG_PHYLIB
49 48  
50 49 /* Environment configuration */
51 50 #define CONFIG_ENV_SECT_SIZE 0x1000
include/configs/socfpga_common.h
... ... @@ -109,7 +109,6 @@
109 109 #define CONFIG_DW_ALTDESCRIPTOR
110 110 #define CONFIG_MII
111 111 #define CONFIG_AUTONEG_TIMEOUT (15 * CONFIG_SYS_HZ)
112   -#define CONFIG_PHYLIB
113 112 #define CONFIG_PHY_GIGE
114 113 #endif
115 114  
include/configs/spear-common.h
... ... @@ -17,7 +17,6 @@
17 17  
18 18 /* Ethernet driver configuration */
19 19 #define CONFIG_MII
20   -#define CONFIG_PHYLIB
21 20 #define CONFIG_PHY_RESET_DELAY 10000 /* in usec */
22 21 #define CONFIG_PHY_GIGE /* Include GbE speed/duplex detection */
23 22  
include/configs/stv0991.h
... ... @@ -53,7 +53,6 @@
53 53 /* GMAC related configs */
54 54  
55 55 #define CONFIG_MII
56   -#define CONFIG_PHYLIB
57 56 #define CONFIG_DW_ALTDESCRIPTOR
58 57 #define CONFIG_PHY_MICREL
59 58  
include/configs/sunxi-common.h
... ... @@ -313,7 +313,6 @@
313 313 #define CONFIG_PHY_GIGE /* GMAC can use gigabit PHY */
314 314 #define CONFIG_PHY_ADDR 1
315 315 #define CONFIG_MII /* MII PHY management */
316   -#define CONFIG_PHYLIB
317 316 #endif
318 317  
319 318 #ifdef CONFIG_USB_EHCI_HCD
include/configs/tb100.h
... ... @@ -42,7 +42,6 @@
42 42 /*
43 43 * Ethernet PHY configuration
44 44 */
45   -#define CONFIG_PHYLIB
46 45 #define CONFIG_PHY_GIGE
47 46  
48 47 /*
include/configs/x600.h
... ... @@ -77,7 +77,6 @@
77 77  
78 78 /* Ethernet config options */
79 79 #define CONFIG_MII
80   -#define CONFIG_PHYLIB
81 80 #define CONFIG_PHY_RESET_DELAY 10000 /* in usec */
82 81 #define CONFIG_PHY_ADDR 0 /* PHY address */
83 82 #define CONFIG_PHY_GIGE /* Include GbE speed/duplex detection */