u-boot/board/freescale
Shaohui Xie 9bf499ace8 powerpc/T4240QDS/eth: some fix for XFI
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>
2014-08-20 10:44:16 -07:00
..
b4860qds Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
bsc9131rdb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
bsc9132qds Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
c29xpcie Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
common fsl/diu: ch7301 encoder split off from t1040qds/diu.c 2014-08-12 12:26:46 -07:00
corenet_ds Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
imx/ddr Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ls2085a Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
m547xevb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
m548xevb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
m5208evbe Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
m5235evb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
m5249evb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
m5253demo Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
m5253evbe Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
m5272c3 Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
m5275evb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
m5282evb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
m5329evb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
m5373evb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
m52277evb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
m53017evb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
m54418twr Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
m54451evb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
m54455evb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc832xemds Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc837xemds Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc837xerdb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc5121ads Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc7448hpc2 Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8266ads Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8308rdb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8313erdb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8315erdb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8323erdb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8349emds Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8349itx Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8360emds Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8360erdk Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8536ds Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8540ads Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8541cds Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8544ds Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8548cds Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8555cds Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8560ads Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8568mds Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8569mds Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8572ds Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8610hpcd Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mpc8641hpcn Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mx6qarm2 Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mx6qsabreauto Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mx6sabresd Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mx6slevk Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mx23evk Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mx25pdk Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mx28evk Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mx31ads Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mx31pdk Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mx35pdk Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mx51evk Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mx53ard Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mx53evk Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mx53loco Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
mx53smd Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
p1_p2_rdb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
p1_p2_rdb_pc Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
p1_twr Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
p1010rdb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
p1022ds Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
p1023rdb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
p2020come Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
p2020ds Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
p2041rdb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
qemu-ppce500 Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
t4qds powerpc/T4240QDS/eth: some fix for XFI 2014-08-20 10:44:16 -07:00
t4rdb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
t104xrdb powerpc/t104xrdb: support deep sleep in SPI/SD boot 2014-08-12 12:26:47 -07:00
t208xqds Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
t208xrdb Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
t1040qds fsl/diu: ch7301 encoder split off from t1040qds/diu.c 2014-08-12 12:26:46 -07:00
vf610twr Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00