Patchwork [U-Boot,1/3] microblaze: Enable several ethernet driver compilation

login
register
mail settings
Submitter Stephan Linz
Date Dec. 21, 2011, 7:28 p.m.
Message ID <1324495689-3970-1-git-send-email-linz@li-pro.net>
Download mbox | patch
Permalink /patch/132722/
State Superseded
Delegated to: Michal Simek
Headers show

Comments

Stephan Linz - Dec. 21, 2011, 7:28 p.m.
From: Michal Simek <monstr@monstr.eu>

NET_MULTI enables to use several ethernet drivers but
microblaze-generic platform config file select only
one driver.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Stephan Linz <linz@li-pro.net>
---
 include/configs/microblaze-generic.h |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

Patch

diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
index 03a6f5a..54fc122 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)
+# define CONFIG_XILINX_LL_TEMAC	1
 # define CONFIG_SYS_ENET
 #endif
 #if defined(XILINX_AXIEMAC_BASEADDR)