diff options
author | Vipin KUMAR <vipin.kumar@st.com> | 2012-05-07 07:36:42 (GMT) |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-07-07 12:07:40 (GMT) |
commit | deb005622782bf568a4daa8daeb8adf95b606492 (patch) | |
tree | a868876e4370f76b7b85866a0c7e8e4e814c4960 /board/spear/spear310/spear310.c | |
parent | 8026b1e42f533f14115bb629efeaaedec6eaf23b (diff) | |
download | u-boot-fsl-qoriq-deb005622782bf568a4daa8daeb8adf95b606492.tar.xz |
SPEAr: Configure network support for spear SoCs
Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Signed-off-by: Amit Virdi <amit.virdi@st.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board/spear/spear310/spear310.c')
-rw-r--r-- | board/spear/spear310/spear310.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/spear/spear310/spear310.c b/board/spear/spear310/spear310.c index 14e666d..043a9f3 100644 --- a/board/spear/spear310/spear310.c +++ b/board/spear/spear310/spear310.c @@ -23,6 +23,7 @@ */ #include <common.h> +#include <netdev.h> #include <nand.h> #include <asm/io.h> #include <linux/mtd/fsmc_nand.h> @@ -61,3 +62,12 @@ void board_nand_init() #endif 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 +} |