summaryrefslogtreecommitdiffstats
path: root/cpu
diff options
context:
space:
mode:
authorBen Warren <biggerbadderben@gmail.com>2009-05-26 00:34:07 -0700
committerBen Warren <biggerbadderben@gmail.com>2009-06-15 00:13:54 -0700
commit8453587ef9137daf98b7c9cf4f3b865f4039cea0 (patch)
tree3947d95a62295a86c7f43ad65574675544a28218 /cpu
parent8cc13c13f1d154c8fa8fff56cea357ed38af76bf (diff)
downloadblackbird-obmc-uboot-8453587ef9137daf98b7c9cf4f3b865f4039cea0.tar.gz
blackbird-obmc-uboot-8453587ef9137daf98b7c9cf4f3b865f4039cea0.zip
Switched davinci_emac Ethernet driver to use newer API
Added CONFIG_NET_MULTI to all Davinci boards Removed all calls to Davinci network driver from board code Added cpu_eth_init() to cpu/arm926ejs/cpu.c Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/arm926ejs/davinci/cpu.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/cpu/arm926ejs/davinci/cpu.c b/cpu/arm926ejs/davinci/cpu.c
index 29aead6f4f..390cab8a20 100644
--- a/cpu/arm926ejs/davinci/cpu.c
+++ b/cpu/arm926ejs/davinci/cpu.c
@@ -21,6 +21,7 @@
*/
#include <common.h>
+#include <netdev.h>
#include <asm/arch/hardware.h>
@@ -129,3 +130,14 @@ int print_cpuinfo(void)
#endif
+/*
+ * Initializes on-chip ethernet controllers.
+ * to override, implement board_eth_init()
+ */
+int cpu_eth_init(bd_t *bis)
+{
+#if defined(CONFIG_DRIVER_TI_EMAC)
+ davinci_emac_initialize();
+#endif
+ return 0;
+}
OpenPOWER on IntegriCloud