summaryrefslogtreecommitdiff
path: root/board/freescale/b4860qds/eth_b4860qds.c
diff options
context:
space:
mode:
authorShaohui Xie <Shaohui.Xie@freescale.com>2014-11-13 11:26:19 +0800
committerYork Sun <yorksun@freescale.com>2014-12-05 08:06:13 -0800
commit89b94d851d683308e731e3ceae1a12f616d1f2f7 (patch)
tree1eb37fead47897cdb4c99276a15d608504a51201 /board/freescale/b4860qds/eth_b4860qds.c
parent8c328c21b7f9b794523c966b777700c0e9b7f424 (diff)
downloadu-boot-imx-89b94d851d683308e731e3ceae1a12f616d1f2f7.zip
u-boot-imx-89b94d851d683308e731e3ceae1a12f616d1f2f7.tar.gz
u-boot-imx-89b94d851d683308e731e3ceae1a12f616d1f2f7.tar.bz2
powerpc/b4860qds: add xfi support
We need following changes to make xfi work on B4: 1. set cross-point switch VSC3308 to use sfp config when running xfi; 2. add 10G interface check for xfi; 3. set phy address for xfi so the 10G ports can be registered by mdio; Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board/freescale/b4860qds/eth_b4860qds.c')
-rw-r--r--board/freescale/b4860qds/eth_b4860qds.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/freescale/b4860qds/eth_b4860qds.c b/board/freescale/b4860qds/eth_b4860qds.c
index 2726cd2..aa48b5e 100644
--- a/board/freescale/b4860qds/eth_b4860qds.c
+++ b/board/freescale/b4860qds/eth_b4860qds.c
@@ -268,6 +268,12 @@ int board_eth_init(bd_t *bis)
CONFIG_SYS_FM1_DTSEC1_RISER_PHY_ADDR);
fm_info_set_phy_address(FM1_DTSEC4,
CONFIG_SYS_FM1_DTSEC2_RISER_PHY_ADDR);
+ /*
+ * XFI does not need a PHY to work, but to make U-boot
+ * happy, assign a fake PHY address for a XFI port.
+ */
+ fm_info_set_phy_address(FM1_10GEC1, 0);
+ fm_info_set_phy_address(FM1_10GEC2, 1);
break;
case 0x98:
/* XAUI in Slot1 and Slot2 */