diff options
author | Ben Warren <biggerbadderben@gmail.com> | 2009-07-20 22:01:11 -0700 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2009-07-22 22:53:44 -0700 |
commit | 736fead8fdbf8a8407048bebc373cd551d01ec98 (patch) | |
tree | 60307d25c8dd18cbdf7e3b3807f924b838cee9fb /board/freescale/mx31pdk/mx31pdk.c | |
parent | 3bd0a877b74b9c005ae7cb892480ccedfa308c20 (diff) | |
download | u-boot-imx-736fead8fdbf8a8407048bebc373cd551d01ec98.zip u-boot-imx-736fead8fdbf8a8407048bebc373cd551d01ec98.tar.gz u-boot-imx-736fead8fdbf8a8407048bebc373cd551d01ec98.tar.bz2 |
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 <biggerbadderben@gmail.com>
Tested-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'board/freescale/mx31pdk/mx31pdk.c')
-rw-r--r-- | board/freescale/mx31pdk/mx31pdk.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/freescale/mx31pdk/mx31pdk.c b/board/freescale/mx31pdk/mx31pdk.c index 6b60c17..9f47169 100644 --- a/board/freescale/mx31pdk/mx31pdk.c +++ b/board/freescale/mx31pdk/mx31pdk.c @@ -25,6 +25,7 @@ #include <common.h> +#include <netdev.h> #include <asm/arch/mx31.h> #include <asm/arch/mx31-regs.h> @@ -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; +} |