summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2015-12-11 09:41:49 +0100
committerMichal Simek <michal.simek@xilinx.com>2016-01-27 15:55:52 +0100
commit3229c869aa663c99591e124f037c67922222e8e4 (patch)
tree1fe15deab2006f08d0515406cf96e099d1bdc042
parentf412b6ab5b5d0960d29c82151e8ccd40390bc786 (diff)
downloadblackbird-obmc-uboot-3229c869aa663c99591e124f037c67922222e8e4.tar.gz
blackbird-obmc-uboot-3229c869aa663c99591e124f037c67922222e8e4.zip
net: emaclite: Move emaclite to Kconfig
Add PHYLIB and MII dependencies and enable it by default for Microblaze. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
-rw-r--r--board/xilinx/microblaze-generic/xparameters.h3
-rw-r--r--configs/microblaze-generic_defconfig2
-rw-r--r--drivers/net/Kconfig8
-rw-r--r--include/configs/microblaze-generic.h3
4 files changed, 10 insertions, 6 deletions
diff --git a/board/xilinx/microblaze-generic/xparameters.h b/board/xilinx/microblaze-generic/xparameters.h
index 79c87fb618..4f44427e60 100644
--- a/board/xilinx/microblaze-generic/xparameters.h
+++ b/board/xilinx/microblaze-generic/xparameters.h
@@ -44,9 +44,6 @@
#define XILINX_SYSACE_HIGHADDR 0x4180ffff
#define XILINX_SYSACE_MEM_WIDTH 16
-/* Ethernet controller is Ethernet_MAC */
-#define XILINX_EMACLITE_BASEADDR 0x40C00000
-
/* Watchdog IP is wxi_timebase_wdt_0 */
#define XILINX_WATCHDOG_BASEADDR 0x50000000
#define XILINX_WATCHDOG_IRQ 1
diff --git a/configs/microblaze-generic_defconfig b/configs/microblaze-generic_defconfig
index 12edab80af..325c1bb44c 100644
--- a/configs/microblaze-generic_defconfig
+++ b/configs/microblaze-generic_defconfig
@@ -11,6 +11,6 @@ CONFIG_CMD_GPIO=y
CONFIG_SPL_OF_CONTROL=y
CONFIG_OF_EMBED=y
CONFIG_DM_ETH=y
-CONFIG_PHYLIB=y
+CONFIG_XILINX_EMACLITE=y
CONFIG_SYS_NS16550=y
CONFIG_XILINX_UARTLITE=y
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index ee15359040..218e1fee22 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -110,6 +110,14 @@ config XILINX_AXIEMAC
help
This MAC is present in Xilinx Microblaze, Zynq and ZynqMP SoCs.
+config XILINX_EMACLITE
+ depends on DM_ETH && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP)
+ select PHYLIB
+ select MII
+ bool "Xilinx Ethernetlite"
+ help
+ This MAC is present in Xilinx Microblaze, Zynq and ZynqMP SoCs.
+
config ZYNQ_GEM
depends on DM_ETH && (ARCH_ZYNQ || ARCH_ZYNQMP)
select PHYLIB
diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
index 30ebff37a6..004826e038 100644
--- a/include/configs/microblaze-generic.h
+++ b/include/configs/microblaze-generic.h
@@ -42,8 +42,7 @@
/* ethernet */
#undef CONFIG_SYS_ENET
-#if defined(XILINX_EMACLITE_BASEADDR) || defined(CONFIG_OF_CONTROL)
-# define CONFIG_XILINX_EMACLITE 1
+#if defined(CONFIG_XILINX_EMACLITE)
# define CONFIG_SYS_ENET
#endif
#if defined(XILINX_AXIEMAC_BASEADDR)
OpenPOWER on IntegriCloud