[U-Boot] [PATCH 1/6] microblaze: Enable axi emac via Kconfig

Michal Simek michal.simek at xilinx.com
Fri Dec 11 13:21:46 CET 2015


Enable driver by default for all platforms.

Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---

 configs/microblaze-generic_defconfig | 1 +
 include/configs/microblaze-generic.h | 6 +-----
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/configs/microblaze-generic_defconfig b/configs/microblaze-generic_defconfig
index 1a389615729f..438c2f15d507 100644
--- a/configs/microblaze-generic_defconfig
+++ b/configs/microblaze-generic_defconfig
@@ -10,6 +10,7 @@ CONFIG_CMD_GPIO=y
 CONFIG_SPL_OF_CONTROL=y
 CONFIG_OF_EMBED=y
 CONFIG_DM_ETH=y
+CONFIG_XILINX_AXIEMAC=y
 CONFIG_XILINX_EMACLITE=y
 CONFIG_SYS_NS16550=y
 CONFIG_XILINX_UARTLITE=y
diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
index 4d8bf46e69f2..8b6ddcbc6ab6 100644
--- a/include/configs/microblaze-generic.h
+++ b/include/configs/microblaze-generic.h
@@ -42,11 +42,7 @@
 
 /* ethernet */
 #undef CONFIG_SYS_ENET
-#if defined(CONFIG_XILINX_EMACLITE)
-# define CONFIG_SYS_ENET
-#endif
-#if defined(XILINX_AXIEMAC_BASEADDR)
-# define CONFIG_XILINX_AXIEMAC	1
+#if defined(CONFIG_XILINX_EMACLITE) || defined(CONFIG_XILINX_AXIEMAC)
 # define CONFIG_SYS_ENET
 #endif
 
-- 
1.9.1



More information about the U-Boot mailing list