From 914947313a710f5dcf06beaf7f2aa24f1ebcce4f Mon Sep 17 00:00:00 2001 From: Ben Warren Date: Fri, 11 Jul 2008 23:15:28 -0700 Subject: Moved initialization of Blackfin EMAC Ethernet controller to board_eth_init() Added board_eth_init() function to bf537-stamp board. Removed initialization for the Blackin EMAC driver from net/eth.c Signed-off-by: Ben Warren --- board/bf537-stamp/bf537-stamp.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'board/bf537-stamp/bf537-stamp.c') diff --git a/board/bf537-stamp/bf537-stamp.c b/board/bf537-stamp/bf537-stamp.c index cd7a04dbfa..a9b7a68c54 100644 --- a/board/bf537-stamp/bf537-stamp.c +++ b/board/bf537-stamp/bf537-stamp.c @@ -154,6 +154,16 @@ int misc_init_r(void) } #endif /* CONFIG_MISC_INIT_R */ +#if defined(CONFIG_BFIN_MAC) + +extern int bfin_EMAC_initialize(bd_t *bis); + +int board_eth_init(bd_t *bis) +{ + return bfin_EMAC_initialize(bis); +} +#endif + #ifdef CONFIG_POST /* Using sw10-PF5 as the hotkey */ int post_hotkeys_pressed(void) -- cgit v1.2.3