mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
9bf499ace8
XFI is supported on T4QDS-XFI board, which removed slot3, and four LANEs of serdes2 are routed to a SFP+ cages, which to house fiber cable or direct attach cable(copper), the copper cable is used to emulate the 10GBASE-KR scenario. So, for XFI usage, there are two scenarios, one will use fiber cable, another will use copper cable. For fiber cable, there is NO PHY, while for copper cable, we need to use internal PHY which exist in Serdes to do auto-negotiation and link training, which implemented in kernel. We use hwconfig to define cable type for XFI, and fixup dtb based on the cable type. For copper cable, set below env in hwconfig: fsl_10gkr_copper:<10g_mac_name> the <10g_mac_name> can be fm1_10g1, fm1_10g2, fm2_10g1, fm2_10g2. The four <10g_mac_name>s do not have to be coexist in hwconfig. For XFI ports, if a given 10G port will use the copper cable for 10GBASE-KR, set the <10g_mac_name> of the port in hwconfig, otherwise, fiber cable will be assumed to be used for the port. For ex. if four XFI ports will both use copper cable, the hwconfig should contain: fsl_10gkr_copper:fm1_10g1,fm1_10g2,fm2_10g1,fm2_10g2 For fiber cable: 1. give PHY address to a XFI port, otherwise, the XFI ports will not be available in U-boot, there is no PHY physically for XFI when using fiber cable, this is just to make U-boot happy and we can use the XFI ports in U-boot. 2. fixup dtb to use fixed-link in case of fiber cable which has no PHY. Kernel requests that a MAC must have a PHY or fixed-link. When using XFI protocol, the MAC 9/10 on FM1 should init as 10G interface. Change serdes 2 protocol 56 to 55 which has same feature as 56 since 56 is not valid any longer. Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com> |
||
---|---|---|
.. | ||
b4860qds | ||
bsc9131rdb | ||
bsc9132qds | ||
c29xpcie | ||
common | ||
corenet_ds | ||
imx/ddr | ||
ls2085a | ||
m547xevb | ||
m548xevb | ||
m5208evbe | ||
m5235evb | ||
m5249evb | ||
m5253demo | ||
m5253evbe | ||
m5272c3 | ||
m5275evb | ||
m5282evb | ||
m5329evb | ||
m5373evb | ||
m52277evb | ||
m53017evb | ||
m54418twr | ||
m54451evb | ||
m54455evb | ||
mpc832xemds | ||
mpc837xemds | ||
mpc837xerdb | ||
mpc5121ads | ||
mpc7448hpc2 | ||
mpc8266ads | ||
mpc8308rdb | ||
mpc8313erdb | ||
mpc8315erdb | ||
mpc8323erdb | ||
mpc8349emds | ||
mpc8349itx | ||
mpc8360emds | ||
mpc8360erdk | ||
mpc8536ds | ||
mpc8540ads | ||
mpc8541cds | ||
mpc8544ds | ||
mpc8548cds | ||
mpc8555cds | ||
mpc8560ads | ||
mpc8568mds | ||
mpc8569mds | ||
mpc8572ds | ||
mpc8610hpcd | ||
mpc8641hpcn | ||
mx6qarm2 | ||
mx6qsabreauto | ||
mx6sabresd | ||
mx6slevk | ||
mx23evk | ||
mx25pdk | ||
mx28evk | ||
mx31ads | ||
mx31pdk | ||
mx35pdk | ||
mx51evk | ||
mx53ard | ||
mx53evk | ||
mx53loco | ||
mx53smd | ||
p1_p2_rdb | ||
p1_p2_rdb_pc | ||
p1_twr | ||
p1010rdb | ||
p1022ds | ||
p1023rdb | ||
p2020come | ||
p2020ds | ||
p2041rdb | ||
qemu-ppce500 | ||
t4qds | ||
t4rdb | ||
t104xrdb | ||
t208xqds | ||
t208xrdb | ||
t1040qds | ||
vf610twr |