From: Michal Simek Date: Thu, 25 Jul 2013 13:47:16 +0000 (+0200) Subject: zynq: Enable axi ethernet and emaclite driver initialization X-Git-Tag: v2013.10-rc3~8^2~8^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2d83d33a51926d6471eb9282d03d83783850d565;p=u-boot zynq: Enable axi ethernet and emaclite driver initialization Zynq can have axi ethernet and emaclite IPs in programmable logic. Signed-off-by: Michal Simek Acked-by: Jagannadha Sutradharudu Teki --- diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c index ca159b0cd3..decdce549e 100644 --- a/board/xilinx/zynq/board.c +++ b/board/xilinx/zynq/board.c @@ -61,6 +61,23 @@ int board_eth_init(bd_t *bis) { u32 ret = 0; +#ifdef CONFIG_XILINX_AXIEMAC + ret |= xilinx_axiemac_initialize(bis, XILINX_AXIEMAC_BASEADDR, + XILINX_AXIDMA_BASEADDR); +#endif +#ifdef CONFIG_XILINX_EMACLITE + u32 txpp = 0; + u32 rxpp = 0; +# ifdef CONFIG_XILINX_EMACLITE_TX_PING_PONG + txpp = 1; +# endif +# ifdef CONFIG_XILINX_EMACLITE_RX_PING_PONG + rxpp = 1; +# endif + ret |= xilinx_emaclite_initialize(bis, XILINX_EMACLITE_BASEADDR, + txpp, rxpp); +#endif + #if defined(CONFIG_ZYNQ_GEM) # if defined(CONFIG_ZYNQ_GEM0) ret |= zynq_gem_initialize(bis, ZYNQ_GEM_BASEADDR0,