u-boot-brain/drivers/net
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
..
fm powerpc/T4240QDS/eth: some fix for XFI 2014-08-20 10:44:16 -07:00
fsl_mc armv8/fsl-lsch3: Add support to load and start MC Firmware 2014-07-03 08:40:58 +02:00
phy vitesse: remove duplicated argument to || 2014-08-09 11:17:02 -04:00
4xx_enet.c SPDX: fix IBM-pibs license identifier 2013-09-20 10:30:54 -04:00
8390.h drivers/net : move net drivers to drivers/net 2007-11-25 18:35:17 +01:00
altera_tse.c net: Fix remaining API interface breakage 2012-05-23 14:19:21 -05:00
altera_tse.h miiphy: convert to linux/mii.h 2011-01-09 18:06:50 +01:00
armada100_fec.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
armada100_fec.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
at91_emac.c net: remove unused CONFIG_AT91_LEGACY 2013-11-13 22:13:32 +01:00
ax88180.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
ax88180.h AX88180: use standard I/O accessors 2010-07-12 00:14:29 -07:00
ax88796.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ax88796.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
bfin_mac.c blackfin: Add <asm/clock.h> to numerous drivers 2014-02-20 12:00:27 -05:00
bfin_mac.h net: Fix remaining API interface breakage 2012-05-23 14:19:21 -05:00
calxedaxgmac.c Merge branch 'u-boot/master' into u-boot-arm/master 2013-07-25 17:57:46 +02:00
cpsw.c drivers: net: cpsw: add support for using second port as ethernet 2014-07-25 15:21:05 -04:00
cs8900.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cs8900.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
davinci_emac.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
davinci_emac.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
dc2114x.c Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
designware.c net/designware: Make DMA burst length configurable and reduce by default 2014-05-25 17:23:58 +02:00
designware.h net/designware: Make DMA burst length configurable and reduce by default 2014-05-25 17:23:58 +02:00
dm9000x.c net: rename and refactor eth_rand_ethaddr() function 2014-05-12 15:19:46 -04:00
dm9000x.h dm9000 remove dead external phy support, gpio fix 2008-08-26 23:08:19 -07:00
dnet.c drivers/net/dnet.c: Fix compile warning 2012-05-22 10:18:15 -05:00
dnet.h dnet: driver for Dave DNET ethernet controller 2009-02-10 00:16:27 +01:00
e1000_spi.c Consolidate bool type 2013-04-01 16:33:52 -04:00
e1000.c e1000: remove redundant assignment 2014-04-18 16:14:10 -04:00
e1000.h drivers/net/e1000: Introduce CONFIG_E1000_NO_NVM 2013-11-22 17:03:19 -06:00
eepro100.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
enc28j60.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
enc28j60.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ep93xx_eth.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ep93xx_eth.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ethoc.c net: Fix remaining API interface breakage 2012-05-23 14:19:21 -05:00
fec_mxc.c NET: fec_mxc: fix MDIO clock prescaler calculation 2014-02-11 11:33:45 +01:00
fec_mxc.h net: fec_mxc: Add support for mx6 solo-lite 2013-09-20 17:55:36 +02:00
fsl_mcdmafec.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
fsl_mdio.c net: fsl_mdio: Fix warnings for __iomem pointers 2013-11-22 17:03:15 -06:00
ftgmac100.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ftgmac100.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ftmac100.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ftmac100.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ftmac110.c net: rename and refactor eth_rand_ethaddr() function 2014-05-12 15:19:46 -04:00
ftmac110.h net: ftmac110: Update tx/rx descriptor format 2013-08-19 12:34:21 -05:00
greth.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
greth.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
keystone_net.c keystone2: net: add keystone ethernet driver 2014-04-17 17:24:39 -04:00
ks8695eth.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ks8851_mll.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ks8851_mll.h net: ks8851_mll: add ethernet support 2013-06-24 19:11:14 -05:00
lan91c96.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
lan91c96.h arm: remove lubbock board support 2014-04-18 10:42:30 -04:00
macb.c net: macb: enable dcache in macb 2014-06-14 18:07:01 +02:00
macb.h net: macb: get DMA bus width from design config register 2013-11-04 20:32:31 +01:00
Makefile net: Rename and cleanup sunxi (Allwinner) emac driver 2014-07-06 20:12:44 +01:00
mcffec.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
mcfmii.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
mpc5xxx_fec.c ppc: Move mpc5xxx clocks to arch_global_data 2013-02-04 09:05:43 -05:00
mpc5xxx_fec.h Move MPC5xxx_FEC driver to drivers/net 2008-08-29 13:58:07 -06:00
mpc512x_fec.c ppc: Move mpc512x clocks to arch_global_data 2013-02-04 09:05:43 -05:00
mpc512x_fec.h MPC512x: remove include/mpc512x.h 2009-06-12 20:47:16 +02:00
mvgbe.c NET: mvgbe: avoid unused variable warning when used without phylib support 2013-11-22 16:50:34 -06:00
mvgbe.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
natsemi.c drivers/net/natsemi.c: Fix compile warning 2012-05-22 13:41:47 -05:00
ne2000_base.c net: Fix remaining API interface breakage 2012-05-23 14:19:21 -05:00
ne2000_base.h Consolidate bool type 2013-04-01 16:33:52 -04:00
ne2000.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
ne2000.h NE2000: Fix regresssion introduced by e710185aae on non AX88796 2008-04-28 22:26:36 -07:00
netconsole.c stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
ns8382x.c drivers/net/ns8382x.c: Fix compile warning 2012-05-22 13:41:47 -05:00
pcnet.c pcnet: force ordering of descriptor accesses 2014-04-18 10:42:30 -04:00
plb2800_eth.c Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
rtl8139.c net: Fix mcast function pointer prototype 2013-11-22 16:57:13 -06:00
rtl8169.c net: rtl8169: Add support for RTL8168d/8111d 2013-11-22 17:03:21 -06:00
sh_eth.c net: sh-eth: Add support R8A7794 2014-07-24 14:03:46 +09:00
sh_eth.h net: sh-eth: Add support R8A7794 2014-07-24 14:03:46 +09:00
smc911x.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
smc911x.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
smc91111.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
smc91111.h SMC91111: Fix compilation warnings 2014-02-21 11:33:18 -05:00
sunxi_emac.c net: Rename and cleanup sunxi (Allwinner) emac driver 2014-07-06 20:12:44 +01:00
tsec.c net: tsec: Fix mac addr setup portability, cleanup 2013-11-22 17:03:17 -06:00
tsi108_eth.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
uli526x.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
vsc7385.c drivers/net/: sparse fixes 2012-11-04 11:00:36 -07:00
xilinx_axi_emac.c net: axi_emac: Check if phy was correctly detected 2014-02-04 16:42:45 +01:00
xilinx_emaclite.c net: emaclite: Fix OF initialization 2014-03-04 09:27:32 -05:00
xilinx_ll_temac_fifo.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac_fifo.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac_mdio.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac_mdio.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac_sdma.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac_sdma.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
zynq_gem.c net: zynq: Fix sparse warnings in gem 2014-05-06 13:41:55 +02:00