diff options
author | Wolfgang Denk <wd@denx.de> | 2011-04-20 23:01:52 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-04-20 23:01:52 +0200 |
commit | aef293bc85dad4f8d645e46d723606a747236a60 (patch) | |
tree | b18d3f3bb2dfafc6116a7f079fc0e7411936f78a /board/freescale/mpc8572ds/mpc8572ds.c | |
parent | 9dd5dad88777a7c6a63f8c103706b57364a135f4 (diff) | |
parent | 995daa0b81f35c93a1d14e5c6a932bc304d06718 (diff) | |
download | u-boot-imx-aef293bc85dad4f8d645e46d723606a747236a60.zip u-boot-imx-aef293bc85dad4f8d645e46d723606a747236a60.tar.gz u-boot-imx-aef293bc85dad4f8d645e46d723606a747236a60.tar.bz2 |
Merge branch 'phylib' of git://git.denx.de/u-boot-mmc
Diffstat (limited to 'board/freescale/mpc8572ds/mpc8572ds.c')
-rw-r--r-- | board/freescale/mpc8572ds/mpc8572ds.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/freescale/mpc8572ds/mpc8572ds.c b/board/freescale/mpc8572ds/mpc8572ds.c index f444805..b20299e 100644 --- a/board/freescale/mpc8572ds/mpc8572ds.c +++ b/board/freescale/mpc8572ds/mpc8572ds.c @@ -35,6 +35,7 @@ #include <libfdt.h> #include <fdt_support.h> #include <tsec.h> +#include <fsl_mdio.h> #include <netdev.h> #include "../common/sgmii_riser.h" @@ -187,6 +188,7 @@ int board_early_init_r(void) #ifdef CONFIG_TSEC_ENET int board_eth_init(bd_t *bis) { + struct fsl_pq_mdio_info mdio_info; struct tsec_info_struct tsec_info[4]; int num = 0; @@ -233,6 +235,10 @@ int board_eth_init(bd_t *bis) fsl_sgmii_riser_init(tsec_info, num); #endif + mdio_info.regs = (struct tsec_mii_mng *)CONFIG_SYS_MDIO_BASE_ADDR; + mdio_info.name = DEFAULT_MII_NAME; + fsl_pq_mdio_init(bis, &mdio_info); + tsec_eth_init(bis, tsec_info, num); return pci_eth_init(bis); |