net: gem: Add driver dependencies to PHYLIB
authorMichal Simek <michal.simek@xilinx.com>
Fri, 11 Dec 2015 08:14:31 +0000 (09:14 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 18 Dec 2015 12:15:58 +0000 (13:15 +0100)
Clear driver dependecies via Kconfig. Remove PHYLIB dependency from
the driver.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
13 files changed:
configs/zynq_microzed_defconfig
configs/zynq_picozed_defconfig
configs/zynq_zc702_defconfig
configs/zynq_zc706_defconfig
configs/zynq_zc770_xm010_defconfig
configs/zynq_zc770_xm011_defconfig
configs/zynq_zc770_xm012_defconfig
configs/zynq_zc770_xm013_defconfig
configs/zynq_zed_defconfig
configs/zynq_zybo_defconfig
drivers/net/Kconfig
drivers/net/zynq_gem.c
include/configs/xilinx_zynqmp.h

index c68efc8f41af876ed1c4ca83b246ee1a0150b072..e577c931735e84069b4e178bb8b7cbd8b0cabe89 100644 (file)
@@ -15,6 +15,5 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
 CONFIG_ZYNQ_GEM=y
 CONFIG_ZYNQ_QSPI=y
index 62eb79f630e3878e3525605f2d1164ac6c5466a5..7d52d8e941b7ec90d9794c52e33211b88397f037 100644 (file)
@@ -8,5 +8,4 @@ CONFIG_SPL=y
 CONFIG_CMD_GPIO=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_NET_RANDOM_ETHADDR=y
-CONFIG_PHYLIB=y
 CONFIG_ZYNQ_GEM=y
index 5261b73e18ba0ce4ffa0e58b2b74101c54a7ad7c..9d1b40d76ef6f15bf27c9ab48bcc6afd6ba73b44 100644 (file)
@@ -14,7 +14,6 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
 CONFIG_ZYNQ_GEM=y
 CONFIG_DEBUG_UART=y
 CONFIG_DEBUG_UART_ZYNQ=y
index 2e525b42d42ab7562deedcf50f7af5d81932392f..bba91dfdfa784891795874d04497cbf027e93afa 100644 (file)
@@ -15,6 +15,5 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
 CONFIG_ZYNQ_GEM=y
 CONFIG_ZYNQ_QSPI=y
index 6f2ad17985e1e4a39b94f1a7dbe4a08ca40b967e..96f0a794a382402fc999e751bce2a2cba10890b3 100644 (file)
@@ -17,7 +17,6 @@ CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_SST=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
 CONFIG_ZYNQ_GEM=y
 CONFIG_ZYNQ_SPI=y
 CONFIG_ZYNQ_QSPI=y
index d20b3edf5cb3b5661dbdb5308dc6c609f0380864..b0c535e88e1995c102bf45fa8204c3d3244487c9 100644 (file)
@@ -12,5 +12,4 @@ CONFIG_SYS_EXTRA_OPTIONS="ZC770_XM011"
 CONFIG_CMD_GPIO=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_NET_RANDOM_ETHADDR=y
-CONFIG_PHYLIB=y
 CONFIG_ZYNQ_GEM=y
index 4e963a45e2cf530e39ba94518d2357eae3642afe..7fb03eb0491be22d0c17b994c8a7bd56d599f34b 100644 (file)
@@ -10,5 +10,4 @@ CONFIG_SYS_EXTRA_OPTIONS="ZC770_XM012"
 CONFIG_CMD_GPIO=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_NET_RANDOM_ETHADDR=y
-CONFIG_PHYLIB=y
 CONFIG_ZYNQ_GEM=y
index f2d8f14f8784fcb08c4458384a6299805092076c..67665127b5ba47e3ae4ab1061532ccbf473ad758 100644 (file)
@@ -12,5 +12,4 @@ CONFIG_SYS_EXTRA_OPTIONS="ZC770_XM013"
 CONFIG_CMD_GPIO=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_NET_RANDOM_ETHADDR=y
-CONFIG_PHYLIB=y
 CONFIG_ZYNQ_GEM=y
index 2e7c68d6a49ee42a89f100c370c614bb72bbf252..058bb05ba65811be2fd1fdfd285773acbd27dc5d 100644 (file)
@@ -15,6 +15,5 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
 CONFIG_ZYNQ_GEM=y
 CONFIG_ZYNQ_QSPI=y
index d443e92189ce559714b0b8626ceebd28232d5e10..231483e3dbd3ea52d77cdef9f5efadd7fbd3c928 100644 (file)
@@ -11,7 +11,6 @@ CONFIG_FIT_SIGNATURE=y
 CONFIG_CMD_GPIO=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_NET_RANDOM_ETHADDR=y
-CONFIG_PHYLIB=y
 CONFIG_ZYNQ_GEM=y
 CONFIG_DEBUG_UART=y
 CONFIG_DEBUG_UART_ZYNQ=y
index e77797ab286faa03e37b53f41372a802281ad183..ae5e78dd3449c4a2faa1afaf5c773bb0e560789c 100644 (file)
@@ -103,6 +103,7 @@ config PCH_GBE
 
 config ZYNQ_GEM
        depends on DM_ETH && (ARCH_ZYNQ || ARCH_ZYNQMP)
+       select PHYLIB
        bool "Xilinx Ethernet GEM"
        help
          This MAC is present in Xilinx Zynq and ZynqMP SoCs.
index f7c20dc9cd542a69f2e234ce7fa86794c391a585..7059c8432a34959a2cc5a8caba230d9ac46e72fc 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if !defined(CONFIG_PHYLIB)
-# error XILINX_GEM_ETHERNET requires PHYLIB
-#endif
-
 /* Bit/mask specification */
 #define ZYNQ_GEM_PHYMNTNC_OP_MASK      0x40020000 /* operation mask bits */
 #define ZYNQ_GEM_PHYMNTNC_OP_R_MASK    0x20000000 /* read operation */
index 50ac5f531c49c135c06ab0d1e1944104b13a8f41..03f74508efeaf6539a7eb7e7dbe72a6c9d022a70 100644 (file)
 # define CONFIG_NET_MULTI
 # define CONFIG_MII
 # define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
-# define CONFIG_PHYLIB
 # define CONFIG_PHY_MARVELL
 # define CONFIG_PHY_TI
 #endif