From d69f8f41af5c8a1cc0b062cf2c7fbbfdbfe8e72d Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Mon, 2 Aug 2010 14:42:09 +0200 Subject: microblaze: Add support for NET_MULTI api Microblaze hasn't supported NET_MULTI support. Signed-off-by: Michal Simek --- board/xilinx/microblaze-generic/microblaze-generic.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'board/xilinx') diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c index 838f131..744384c 100644 --- a/board/xilinx/microblaze-generic/microblaze-generic.c +++ b/board/xilinx/microblaze-generic/microblaze-generic.c @@ -27,6 +27,7 @@ #include #include +#include #include #include @@ -66,3 +67,15 @@ int fsl_init2 (void) { return 0; } #endif + +int board_eth_init(bd_t *bis) +{ + /* + * This board either has PCI NICs or uses the CPU's TSECs + * pci_eth_init() will return 0 if no NICs found, so in that case + * returning -1 will force cpu_eth_init() to be called. + */ +#ifdef CONFIG_XILINX_EMACLITE + return xilinx_emaclite_initialize(bis, XILINX_EMACLITE_BASEADDR); +#endif +} -- cgit v1.1