diff options
author | Ian Campbell <ijc@hellion.org.uk> | 2014-04-18 19:05:47 +0100 |
---|---|---|
committer | Dennis Gilmore <dennis@ausil.us> | 2014-04-25 17:08:11 -0500 |
commit | 4b39387594767ac865caa8710d1be39e869926e3 (patch) | |
tree | f438f904fed516d8385c7473e725e194d140b7e1 /arch/arm/cpu/armv7/sunxi | |
parent | b2c413d8119dbbef34189e9beb84a0b2a00fa86d (diff) | |
download | u-boot-4b39387594767ac865caa8710d1be39e869926e3.tar.gz u-boot-4b39387594767ac865caa8710d1be39e869926e3.tar.xz u-boot-4b39387594767ac865caa8710d1be39e869926e3.zip |
sunxi: add gmac Ethernet support
Add support for the GMAC Ethernet controller on Allwinner A20 (sun7i)
processors. Enable for the Cubietruck.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Jens Kuske <jenskuske@gmail.com>
Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'arch/arm/cpu/armv7/sunxi')
-rw-r--r-- | arch/arm/cpu/armv7/sunxi/board.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/board.c index b5c0cb7487..9755320d07 100644 --- a/arch/arm/cpu/armv7/sunxi/board.c +++ b/arch/arm/cpu/armv7/sunxi/board.c @@ -11,6 +11,8 @@ */ #include <common.h> +#include <netdev.h> +#include <miiphy.h> #include <serial.h> #ifdef CONFIG_SPL_BUILD #include <spl.h> @@ -86,3 +88,16 @@ void enable_caches(void) dcache_enable(); } #endif + +#if defined(CONFIG_SUNXI_GMAC) +/* + * Initializes on-chip ethernet controllers. + * to override, implement board_eth_init() + */ +int cpu_eth_init(bd_t *bis) +{ + sunxi_gmac_initialize(bis); + + return 0; +} +#endif |