From feede8b07013b33fca8dd2a916b3ac86bf4d4c0a Mon Sep 17 00:00:00 2001 From: Andy Fleming Date: Fri, 5 Dec 2008 20:10:22 -0600 Subject: Fixup SGMII PHY ids in the device tree The device tree's PHY addresses need to be fixed up if we're using the SGMII Riser Card. The 8572, 8536, and 8544 DS boards were modified to call this function. Code idea taken from Liu Yu Signed-off-by: Andy Fleming --- board/freescale/mpc8572ds/mpc8572ds.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'board/freescale/mpc8572ds/mpc8572ds.c') diff --git a/board/freescale/mpc8572ds/mpc8572ds.c b/board/freescale/mpc8572ds/mpc8572ds.c index c8b3966..6625d3a 100644 --- a/board/freescale/mpc8572ds/mpc8572ds.c +++ b/board/freescale/mpc8572ds/mpc8572ds.c @@ -542,7 +542,9 @@ int board_eth_init(bd_t *bis) return 0; } +#ifdef CONFIG_FSL_SGMII_RISER fsl_sgmii_riser_init(tsec_info, num); +#endif tsec_eth_init(bis, tsec_info, num); @@ -575,6 +577,9 @@ void ft_board_setup(void *blob, bd_t *bd) #ifdef CONFIG_PCIE1 ft_fsl_pci_setup(blob, "pci2", &pcie1_hose); #endif +#ifdef CONFIG_FSL_SGMII_RISER + fsl_sgmii_riser_fdt_fixup(blob); +#endif } #endif -- cgit v1.1