summaryrefslogtreecommitdiff
path: root/board/xilinx
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2010-08-02 14:42:09 +0200
committerMichal Simek <monstr@monstr.eu>2010-10-12 16:51:34 +1000
commitd69f8f41af5c8a1cc0b062cf2c7fbbfdbfe8e72d (patch)
tree33d7b483e0d01dc2a596d6191c598ff861ff0f6d /board/xilinx
parent4aecfb1602729b40bf7b49866e9614e6b4f70c2d (diff)
downloadu-boot-imx-d69f8f41af5c8a1cc0b062cf2c7fbbfdbfe8e72d.zip
u-boot-imx-d69f8f41af5c8a1cc0b062cf2c7fbbfdbfe8e72d.tar.gz
u-boot-imx-d69f8f41af5c8a1cc0b062cf2c7fbbfdbfe8e72d.tar.bz2
microblaze: Add support for NET_MULTI api
Microblaze hasn't supported NET_MULTI support. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'board/xilinx')
-rw-r--r--board/xilinx/microblaze-generic/microblaze-generic.c13
1 files changed, 13 insertions, 0 deletions
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 <common.h>
#include <config.h>
+#include <netdev.h>
#include <asm/microblaze_intc.h>
#include <asm/asm.h>
@@ -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
+}