Patchwork [U-Boot,6/8] microblaze: Enable several ethernet driver compilation

login
register
mail settings
Submitter Michal Simek
Date Aug. 31, 2011, 10:57 a.m.
Message ID <1314788276-26107-7-git-send-email-monstr@monstr.eu>
Download mbox | patch
Permalink /patch/112535/
State Superseded
Headers show

Comments

Michal Simek - Aug. 31, 2011, 10:57 a.m.
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>
---
 include/configs/microblaze-generic.h |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
Stephan Linz - Nov. 27, 2011, 5:59 p.m.
Am Mittwoch, den 31.08.2011, 12:57 +0200 schrieb Michal Simek: 
> 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>

Acked-by: Stephan Linz <linz@li-pro.net>

> ---
>  include/configs/microblaze-generic.h |    9 +++++----
>  1 files changed, 5 insertions(+), 4 deletions(-)
> 
> diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
> index c526006..4c76afd 100644
> --- a/include/configs/microblaze-generic.h
> +++ b/include/configs/microblaze-generic.h
> @@ -63,11 +63,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
>

Patch

diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
index c526006..4c76afd 100644
--- a/include/configs/microblaze-generic.h
+++ b/include/configs/microblaze-generic.h
@@ -63,11 +63,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