diff options
author | Ben Warren <biggerbadderben@gmail.com> | 2009-05-26 00:34:07 -0700 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2009-06-15 00:13:54 -0700 |
commit | 8453587ef9137daf98b7c9cf4f3b865f4039cea0 (patch) | |
tree | 3947d95a62295a86c7f43ad65574675544a28218 /cpu/arm926ejs/davinci/cpu.c | |
parent | 8cc13c13f1d154c8fa8fff56cea357ed38af76bf (diff) |
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/arm926ejs/davinci/cpu.c')
-rw-r--r-- | cpu/arm926ejs/davinci/cpu.c | 12 |
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; +} |