diff options
author | Ben Warren <biggerbadderben@gmail.com> | 2008-07-11 23:15:28 -0700 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2008-08-26 22:17:36 -0700 |
commit | 914947313a710f5dcf06beaf7f2aa24f1ebcce4f (patch) | |
tree | 696bb8c7426f1be5847d2ff8cb00c3e75da8a505 /board/bf537-stamp | |
parent | fc363ce35408f348cacced68505f3747a53e3d7c (diff) |
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 <biggerbadderben@gmail.com>
Diffstat (limited to 'board/bf537-stamp')
-rw-r--r-- | board/bf537-stamp/bf537-stamp.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/bf537-stamp/bf537-stamp.c b/board/bf537-stamp/bf537-stamp.c index cd7a04dbfa0..a9b7a68c549 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) |