[U-Boot] [PATCH 5/8] microblaze: Wire up LL_TEMAC driver initialization

Stephan Linz linz at li-pro.net
Sun Nov 27 18:59:23 CET 2011


Am Mittwoch, den 31.08.2011, 12:57 +0200 schrieb Michal Simek: 
> Initialize ll_temac driver.
> 
> Signed-off-by: Michal Simek <monstr at monstr.eu>

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

> ---
>  .../xilinx/microblaze-generic/microblaze-generic.c |   16 ++++++++++++++++
>  1 files changed, 16 insertions(+), 0 deletions(-)
> 
> diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c
> index 9b2952f..87acc6b 100644
> --- a/board/xilinx/microblaze-generic/microblaze-generic.c
> +++ b/board/xilinx/microblaze-generic/microblaze-generic.c
> @@ -84,5 +84,21 @@ int board_eth_init(bd_t *bis)
>  	ret |= xilinx_emaclite_initialize(bis, XILINX_EMACLITE_BASEADDR,
>  			txpp, rxpp);
>  #endif
> +
> +#ifdef CONFIG_XILINX_LL_TEMAC
> +# ifdef XILINX_LLTEMAC_FIFO_BASEADDR
> +	ret |= xilinx_ll_temac_initialize(bis, XILINX_LLTEMAC_BASEADDR,
> +					0, XILINX_LLTEMAC_FIFO_BASEADDR);
> +# elif XILINX_LLTEMAC_SDMA_CTRL_BASEADDR
> +#  if XILINX_LLTEMAC_SDMA_USE_DCR == 1
> +	ret |= xilinx_ll_temac_initialize(bis, XILINX_LLTEMAC_BASEADDR,
> +					3, XILINX_LLTEMAC_SDMA_CTRL_BASEADDR);
> +#  else
> +	ret |= xilinx_ll_temac_initialize(bis, XILINX_LLTEMAC_BASEADDR,
> +					1, XILINX_LLTEMAC_SDMA_CTRL_BASEADDR);
> +#  endif
> +# endif
> +#endif
> +
>  	return ret;
>  }

-- 
Viele Grüße,
Stephan Linz
______________________________________________________________________________
MB-Ref: http://www.li-pro.de/xilinx_mb:mbref:start
OpenDCC: http://www.li-pro.net/opendcc.phtml
PC/M: http://www.li-pro.net/pcm.phtml
Sourceforge: http://sourceforge.net/users/slz
Gitorious: https://gitorious.org/~slz



More information about the U-Boot mailing list