From 736fead8fdbf8a8407048bebc373cd551d01ec98 Mon Sep 17 00:00:00 2001 From: Ben Warren Date: Mon, 20 Jul 2009 22:01:11 -0700 Subject: Convert SMC911X Ethernet driver to CONFIG_NET_MULTI API All in-tree boards that use this controller have CONFIG_NET_MULTI added Also: - changed CONFIG_DRIVER_SMC911X* to CONFIG_SMC911X* - cleaned up line lengths - modified all boards that override weak function in this driver - added Signed-off-by: Ben Warren Tested-by: Mike Frysinger --- board/freescale/mx31pdk/mx31pdk.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'board/freescale') diff --git a/board/freescale/mx31pdk/mx31pdk.c b/board/freescale/mx31pdk/mx31pdk.c index 6b60c17dca..9f471692dd 100644 --- a/board/freescale/mx31pdk/mx31pdk.c +++ b/board/freescale/mx31pdk/mx31pdk.c @@ -25,6 +25,7 @@ #include +#include #include #include @@ -61,3 +62,12 @@ int checkboard(void) printf("Board: i.MX31 MAX PDK (3DS)\n"); return 0; } + +int board_eth_init(bd_t *bis) +{ + int rc = 0; +#ifdef CONFIG_SMC911X + rc = smc911x_initialize(0, CONFIG_SMC911X_BASE); +#endif + return rc; +} -- cgit v1.2.1