diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-06-09 11:37:00 +0200 |
---|---|---|
committer | Ian Campbell <ijc@hellion.org.uk> | 2014-07-06 20:12:45 +0100 |
commit | c26fb9db0ed7d524bde1206ed49a63e50125d329 (patch) | |
tree | 360c22e5a0836960a6d3af9927a3e19c5e29a7f6 /arch/arm/cpu/armv7/sunxi/board.c | |
parent | b70ed300b0dcf23e46265904ddc4fbf9a72b99b8 (diff) | |
download | u-boot-imx-c26fb9db0ed7d524bde1206ed49a63e50125d329.zip u-boot-imx-c26fb9db0ed7d524bde1206ed49a63e50125d329.tar.gz u-boot-imx-c26fb9db0ed7d524bde1206ed49a63e50125d329.tar.bz2 |
sunxi: Add emac glue, enable emac on the cubieboard
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'arch/arm/cpu/armv7/sunxi/board.c')
-rw-r--r-- | arch/arm/cpu/armv7/sunxi/board.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/board.c index 0118f5b..1e506b5 100644 --- a/arch/arm/cpu/armv7/sunxi/board.c +++ b/arch/arm/cpu/armv7/sunxi/board.c @@ -117,6 +117,14 @@ int cpu_eth_init(bd_t *bis) { int rc; +#ifdef CONFIG_SUNXI_EMAC + rc = sunxi_emac_initialize(bis); + if (rc < 0) { + printf("sunxi: failed to initialize emac\n"); + return rc; + } +#endif + #ifdef CONFIG_SUNXI_GMAC rc = sunxi_gmac_initialize(bis); if (rc < 0) { |