B4860QDS: Enable enet port as per fsl_b4860_serdes2 string in hwconfig
PATCH 5/5 B4860QDS: Enable enet port as per fsl_b4860_serdes2 string in hwconfig
From: Suresh Gupta <[email protected]>
In B4860QDS board SerDes2 lanes EFGH either go to SFP or AMC riser card slot2 so either DTSEC3/DTSEC4 or TGEC1/TGEC2 should be accessible. This Patch enables DTSEC3/DTSEC4 or TGEC1/TGEC2 on bases of user specified string fsl_b4860_serdes2:sfp_amc=amc or fsl_b4860_serdes2:sfp_amc=sfp respectively in hwconfig.
--- board/freescale/b4860qds/eth_b4860qds.c | 19 ++++++++++ drivers/net/fm/b4860.c | 64 +++++++++++++++++++++++++++++++-- 2 files changed, 81 insertions(+), 2 deletions(-)
board/freescale/b4860qds/eth_b4860qds.c +19 -0
@@ -407,6 +407,25 @@ void board_ft_fman_fixup_port(void *fdt, char *compat, phys_addr_t addr,fdt_setprop (fdt, offset,"fixed-link" , &f_link,sizeof (f_link));break ; +case 0x98 :/* XAUI interface */ +sprintf (alias,"phy_xaui_slot1" ); +fdt_status_okay_by_alias (fdt, alias); + +sprintf (alias,"phy_xaui_slot2" ); +fdt_status_okay_by_alias (fdt, alias); +break ; +case 0x9e :/* XAUI interface */ +case 0x9a : +case 0x93 : +case 0x91 : +sprintf (alias,"phy_xaui_slot1" ); +fdt_status_okay_by_alias (fdt, alias); +break ; +case 0x97 :/* XAUI interface */ +case 0xc3 : +sprintf (alias,"phy_xaui_slot2" ); +fdt_status_okay_by_alias (fdt, alias); +break ;default :break ; }
drivers/net/fm/b4860.c +62 -2
85 lines not on this page · raw message
Signature · 1 line
2.1.0.27.g96db324
PATCH 5/5 B4860QDS: Enable enet port as per fsl_b4860_serdes2 string in hwconfig
Quoted 11 lines · shh.xie at gmail.com
From: Suresh Gupta <[email protected]>
In B4860QDS board SerDes2 lanes EFGH either go to SFP or AMC riser card slot2 so either DTSEC3/DTSEC4 or TGEC1/TGEC2 should be accessible. This Patch enables DTSEC3/DTSEC4 or TGEC1/TGEC2 on bases of user specified string fsl_b4860_serdes2:sfp_amc=amc or fsl_b4860_serdes2:sfp_amc=sfp respectively in hwconfig.
Signed-off-by Suresh Gupta <[email protected]>Signed-off-by Shaohui Xie <[email protected]>---
Applied to u-boot-mpc85xx, awaiting upstream.
York