[U-Boot] [PATCH 8/8] microblaze: ll_temac: export xilinx_ll_temac_eth_init() for evaluation
Stephan Linz
linz at li-pro.net
Thu Feb 23 20:02:46 CET 2012
Am Donnerstag, den 23.02.2012, 12:56 +0100 schrieb Michal Simek:
> Stephan Linz wrote:
> > Signed-off-by: Stephan Linz <linz at li-pro.net>
> > ---
> > .../xilinx/microblaze-generic/microblaze-generic.c | 57 ++++++++++++++++++++
> > drivers/net/xilinx_ll_temac.c | 2 +-
> > include/xilinx_ll_temac.h | 3 +
> > 3 files changed, 61 insertions(+), 1 deletions(-)
> >
> > diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c
> > index 517b2f1..d2f56b9 100644
> > --- a/board/xilinx/microblaze-generic/microblaze-generic.c
> > +++ b/board/xilinx/microblaze-generic/microblaze-generic.c
> > @@ -31,6 +31,10 @@
> > #include <asm/microblaze_intc.h>
> > #include <asm/asm.h>
> >
> > +#ifdef CONFIG_XILINX_LL_TEMAC
> > +#include <xilinx_ll_temac.h>
> > +#endif
> > +
> > int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
> > {
> > #ifdef CONFIG_SYS_GPIO_0
> > @@ -92,7 +96,60 @@ int board_eth_init(bd_t *bis)
> > #endif
> >
> > #ifdef CONFIG_XILINX_LL_TEMAC
> > +#if 1
> > + /* This should be the preferred way to initialize
> > + * all the interfaces. */
> > ret |= xilinx_ll_temac_standard_init(bis);
>
> if 1 is not the best for mainline because it means that below is dead code.
:) right -- This snippet was only intended for illustration of the
differences
Stephan
More information about the U-Boot
mailing list