]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/spear/spear320/spear320.c
SPEAr: Configure network support for spear SoCs
[people/ms/u-boot.git] / board / spear / spear320 / spear320.c
index 994eb2b64d2ae6139964d543e1c7553c5df691e4..1b6f362b5d873de7e5e679ec7db24045a5c83c0d 100644 (file)
@@ -23,6 +23,7 @@
  */
 
 #include <common.h>
+#include <netdev.h>
 #include <nand.h>
 #include <asm/io.h>
 #include <linux/mtd/fsmc_nand.h>
@@ -62,3 +63,12 @@ void board_nand_init()
 
        return;
 }
+
+int board_eth_init(bd_t *bis)
+{
+#if defined(CONFIG_DESIGNWARE_ETH)
+       return designware_initialize(0, CONFIG_SPEAR_ETHBASE, CONFIG_DW0_PHY);
+#else
+       return -1;
+#endif
+}