]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/broadcom/bcm_ep/board.c
arm: bcmcygnus: Enable Ethernet support
[karo-tx-uboot.git] / board / broadcom / bcm_ep / board.c
index eaad0b3d98f64d7cde65b9047618b32adbc4d79e..c28b203ceaac8555dd16420ff70caf7678fa9f1a 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <asm/io.h>
 #include <config.h>
+#include <netdev.h>
 #include <asm/system.h>
 #include <asm/iproc-common/armpll.h>
 
@@ -67,3 +68,13 @@ void smp_waitloop(unsigned previous_address)
 {
 }
 #endif
+
+#ifdef CONFIG_BCM_SF2_ETH
+int board_eth_init(bd_t *bis)
+{
+       int rc = -1;
+       printf("Registering BCM sf2 eth\n");
+       rc = bcm_sf2_eth_register(bis, 0);
+       return rc;
+}
+#endif