diff options
Diffstat (limited to 'board/spear/spear320/spear320.c')
-rw-r--r-- | board/spear/spear320/spear320.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/spear/spear320/spear320.c b/board/spear/spear320/spear320.c index 994eb2b64d..1b6f362b5d 100644 --- a/board/spear/spear320/spear320.c +++ b/board/spear/spear320/spear320.c @@ -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 +} |