mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
microblaze: Fix EMAC Lite initialization
It is possible for CONFIG_XILINX_EMACLITE to be defined without XILINX_EMACLITE_BASEADDR being defined as the EMAC Lite driver support OF init. Check that the driver is enabled and the base address is available before initializing with a static base address. Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
cc555bd4f4
commit
127e8a5e43
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ int board_eth_init(bd_t *bis)
|
|||
XILINX_AXIDMA_BASEADDR);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_XILINX_EMACLITE
|
||||
#if defined(CONFIG_XILINX_EMACLITE) && defined(XILINX_EMACLITE_BASEADDR)
|
||||
u32 txpp = 0;
|
||||
u32 rxpp = 0;
|
||||
# ifdef CONFIG_XILINX_EMACLITE_TX_PING_PONG
|
||||
|
|
Loading…
Reference in a new issue