diff options
author | Wolfgang Denk <wd@denx.de> | 2008-07-09 23:22:54 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-09 23:22:54 +0200 |
commit | 9692cab76f7b7891f71c8a9b189465cd3bd68ef0 (patch) | |
tree | d84348280c2993329787ef7881ada85241d2f61b /cpu/mpc85xx/cpu.c | |
parent | 2caea1ebee1fb20e1b229f1f821225829fb87f0e (diff) | |
parent | 63676841ca2d603b13765f3f7b72ff1a61c23f90 (diff) | |
download | u-boot-imx-9692cab76f7b7891f71c8a9b189465cd3bd68ef0.zip u-boot-imx-9692cab76f7b7891f71c8a9b189465cd3bd68ef0.tar.gz u-boot-imx-9692cab76f7b7891f71c8a9b189465cd3bd68ef0.tar.bz2 |
Merge branch 'master' of git://www.denx.de/git/u-boot-net
Diffstat (limited to 'cpu/mpc85xx/cpu.c')
-rw-r--r-- | cpu/mpc85xx/cpu.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/cpu/mpc85xx/cpu.c b/cpu/mpc85xx/cpu.c index 0f72051..0d50549 100644 --- a/cpu/mpc85xx/cpu.c +++ b/cpu/mpc85xx/cpu.c @@ -353,3 +353,33 @@ void upmconfig (uint upm, uint * table, uint size) } out_be32(mxmr, loopval); /* OP_NORMAL */ } + +#if defined(CONFIG_TSEC_ENET) || defined(CONFIGMPC85XX_FEC) +/* Default initializations for TSEC controllers. To override, + * create a board-specific function called: + * int board_eth_init(bd_t *bis) + */ + +extern int tsec_initialize(bd_t * bis, int index, char *devname); + +int cpu_eth_init(bd_t *bis) +{ +#if defined(CONFIG_TSEC1) + tsec_initialize(bis, 0, CONFIG_TSEC1_NAME); +#endif +#if defined(CONFIG_TSEC2) + tsec_initialize(bis, 1, CONFIG_TSEC2_NAME); +#endif +#if defined(CONFIG_MPC85XX_FEC) + tsec_initialize(bis, 2, CONFIG_MPC85XX_FEC_NAME); +#else +#if defined(CONFIG_TSEC3) + tsec_initialize(bis, 2, CONFIG_TSEC3_NAME); +#endif +#if defined(CONFIG_TSEC4) + tsec_initialize(bis, 3, CONFIG_TSEC4_NAME); +#endif +#endif + return 0; +} +#endif |