From 86882b80771309bceb11c6accfd7f6f90ade8bfc Mon Sep 17 00:00:00 2001 From: Ben Warren Date: Tue, 26 Aug 2008 22:16:25 -0700 Subject: Moved initialization of MCFFEC Ethernet driver to CPU directory Added a cpu_eth_init() function to coldfire CPU directories and removed code from net/eth.c Signed-off-by: Ben Warren --- cpu/mcf5445x/cpu.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'cpu/mcf5445x') diff --git a/cpu/mcf5445x/cpu.c b/cpu/mcf5445x/cpu.c index e601b89..ab342dd 100644 --- a/cpu/mcf5445x/cpu.c +++ b/cpu/mcf5445x/cpu.c @@ -95,3 +95,17 @@ int checkcpu(void) return 0; } + +#if defined(CONFIG_MCFFEC) +/* Default initializations for MCFFEC controllers. To override, + * create a board-specific function called: + * int board_eth_init(bd_t *bis) + */ + +extern int mcffec_initialize(bd_t*); + +int cpu_eth_init(bd_t *bis) +{ + return mcffec_initialize(bis); +} +#endif -- cgit v1.1