diff options
author | Ben Warren <biggerbadderben@gmail.com> | 2008-08-31 10:39:12 -0700 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2008-09-02 21:18:18 -0700 |
commit | e1d7480b5de1fd4830bf7cf5e2237d3b0846d08d (patch) | |
tree | 1ebc9217b2cd886948db05c4ab28ea101df4bd53 /cpu/mpc5xxx | |
parent | a0aad08f9427ac00218bdb2cb649833ce6ec9b8d (diff) | |
download | u-boot-imx-e1d7480b5de1fd4830bf7cf5e2237d3b0846d08d.zip u-boot-imx-e1d7480b5de1fd4830bf7cf5e2237d3b0846d08d.tar.gz u-boot-imx-e1d7480b5de1fd4830bf7cf5e2237d3b0846d08d.tar.bz2 |
Moved initialization of MPC5xxx_FEC Ethernet driver to CPU directory
Modified board_eth_init() functions of boards that have this FEC in addition
to other Ethernet controllers.
Affected boards:
bc3450
icecube
mvbc_p
o2dnt
pm520
total5200
tq5200
Removed initialization of controller from net/eth.c
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'cpu/mpc5xxx')
-rw-r--r-- | cpu/mpc5xxx/cpu.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpu/mpc5xxx/cpu.c b/cpu/mpc5xxx/cpu.c index 0ed2899..1326c3c 100644 --- a/cpu/mpc5xxx/cpu.c +++ b/cpu/mpc5xxx/cpu.c @@ -29,6 +29,7 @@ #include <watchdog.h> #include <command.h> #include <mpc5xxx.h> +#include <netdev.h> #include <asm/io.h> #include <asm/processor.h> @@ -155,3 +156,15 @@ ulong bootcount_load (void) return (*save_addr & 0x0000ffff); } #endif /* CONFIG_BOOTCOUNT_LIMIT */ + +#ifdef CONFIG_MPC5xxx_FEC +/* Default initializations for FEC controllers. To override, + * create a board-specific function called: + * int board_eth_init(bd_t *bis) + */ + +int cpu_eth_init(bd_t *bis) +{ + return mpc5xxx_fec_initialize(bis); +} +#endif |