summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorSuresh Gupta <suresh.gupta@freescale.com>2014-11-13 11:28:09 +0800
committerYork Sun <yorksun@freescale.com>2014-12-05 08:06:14 -0800
commite2544e7a5459b7ad5efd8c99d54e71c2535281d1 (patch)
tree0b34d0a97becf1263e22040a936e5695fc3a7089 /board/freescale
parentb24f6d401c3270370b9c147cb9decf95dc6804d3 (diff)
downloadu-boot-imx-e2544e7a5459b7ad5efd8c99d54e71c2535281d1.zip
u-boot-imx-e2544e7a5459b7ad5efd8c99d54e71c2535281d1.tar.gz
u-boot-imx-e2544e7a5459b7ad5efd8c99d54e71c2535281d1.tar.bz2
B4860QDS: Enable enet port as per fsl_b4860_serdes2 string in hwconfig
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 <suresh.gupta@freescale.com> Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/b4860qds/eth_b4860qds.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/board/freescale/b4860qds/eth_b4860qds.c b/board/freescale/b4860qds/eth_b4860qds.c
index 595bb4c..501d4b3 100644
--- a/board/freescale/b4860qds/eth_b4860qds.c
+++ b/board/freescale/b4860qds/eth_b4860qds.c
@@ -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;
}