[U-Boot] [PATCH 2/5] microblaze: Enable several ethernet driver compilation
Stephan Linz
linz at li-pro.net
Sun Jan 15 16:46:03 CET 2012
NET_MULTI enables to use several ethernet drivers but
microblaze-generic platform config file select only
one driver.
Reported-by: Michal Simek <monstr at monstr.eu>
Signed-off-by: Stephan Linz <linz at li-pro.net>
---
include/configs/microblaze-generic.h | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
index 03a6f5a..29a86d1 100644
--- a/include/configs/microblaze-generic.h
+++ b/include/configs/microblaze-generic.h
@@ -65,11 +65,12 @@
/* ethernet */
#undef CONFIG_SYS_ENET
-#ifdef XILINX_EMACLITE_BASEADDR
-# define CONFIG_XILINX_EMACLITE 1
+#if defined(XILINX_EMACLITE_BASEADDR)
+# define CONFIG_XILINX_EMACLITE 1
# define CONFIG_SYS_ENET
-#elif XILINX_LLTEMAC_BASEADDR
-# define CONFIG_XILINX_LL_TEMAC 1
+#endif
+#if defined(XILINX_LLTEMAC_BASEADDR) || defined(XILINX_LLTEMAC_BASEADDR1)
+# define CONFIG_XILINX_LL_TEMAC 1
# define CONFIG_SYS_ENET
#endif
#if defined(XILINX_AXIEMAC_BASEADDR)
@@ -312,6 +313,7 @@
#define CONFIG_SERVERIP 192.168.0.5
#define CONFIG_GATEWAYIP 192.168.0.1
#define CONFIG_ETHADDR 00:E0:0C:00:00:FD
+#define CONFIG_ETH1ADDR 00:E0:0C:00:00:FC
/* architecture dependent code */
#define CONFIG_SYS_USR_EXCEP /* user exception */
--
1.7.0.4
More information about the U-Boot
mailing list