diff options
author | Ben Warren <biggerbadderben@gmail.com> | 2008-08-31 09:59:33 -0700 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2008-09-02 21:18:16 -0700 |
commit | ccdd12f83ef93719fbe85f642aa4dc648b9498f0 (patch) | |
tree | 172383dede7a00bdac46164664d13da50c58586e /board/freescale | |
parent | 0b252f50ae218ae15bfb63af44227972686ebc56 (diff) | |
download | u-boot-imx-ccdd12f83ef93719fbe85f642aa4dc648b9498f0.zip u-boot-imx-ccdd12f83ef93719fbe85f642aa4dc648b9498f0.tar.gz u-boot-imx-ccdd12f83ef93719fbe85f642aa4dc648b9498f0.tar.bz2 |
Moved initialization of TSI108 Ethernet controller to board_eth_init()
Affected boards:
mpc7448hpc2
Removed initialization of the driver from net/eth.c
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/mpc7448hpc2/mpc7448hpc2.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/freescale/mpc7448hpc2/mpc7448hpc2.c b/board/freescale/mpc7448hpc2/mpc7448hpc2.c index 6f74c31..cfdbed5 100644 --- a/board/freescale/mpc7448hpc2/mpc7448hpc2.c +++ b/board/freescale/mpc7448hpc2/mpc7448hpc2.c @@ -32,6 +32,7 @@ #include <common.h> #include <74xx_7xx.h> #include <fdt_support.h> +#include <netdev.h> #undef DEBUG @@ -92,3 +93,12 @@ ft_board_setup(void *blob, bd_t *bd) fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize); } #endif + +int board_eth_init(bd_t *bis) +{ + int rc = 0; +#if defined(CONFIG_TSI108_ETH) + rc = tsi108_eth_initialize(bis); +#endif + return rc; +} |