u-boot-brain/drivers
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
..
bios_emulator kbuild: use Linux Kernel build scripts 2014-02-19 11:07:50 -05:00
block AHCI: Increase link timeout to 200ms 2014-07-22 07:44:28 -04:00
bootcount qe: move immap_qe.h from arch directory into common directory 2014-07-22 16:25:54 -07:00
core dm: Add dm_scan_other() to locate board-specific devices 2014-07-23 14:08:37 +01:00
crypto includes: move openssl headers to include/u-boot 2014-06-19 11:19:04 -04:00
ddr/fsl driver/ddr: Fix DDR register timing_cfg_8 2014-07-22 16:25:55 -07:00
demo dm: Give the demo uclass a name 2014-07-23 14:08:37 +01:00
dfu dfu: fix readback buffer overflow test 2014-08-09 11:17:01 -04:00
dma omap: clean-up dead configs 2014-08-09 11:17:04 -04:00
fpga m68k: Fix warnings with gcc 4.6 2014-06-11 16:27:05 -04:00
gpio Merge branch 'u-boot-sunxi/master' into 'u-boot-arm/master' 2014-07-28 10:12:45 +02:00
hwmon kbuild: use Linux Kernel build scripts 2014-02-19 11:07:50 -05:00
i2c Merge branch 'u-boot-sunxi/master' into 'u-boot-arm/master' 2014-07-28 10:12:45 +02:00
input stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
memory ARM: keystone: aemif: move aemif driver to drivers/memory/ti-aemif.c 2014-06-19 17:53:58 -04:00
misc cros_ec: Fix two bugs in the SPI implementation 2014-08-06 00:18:01 +05:30
mmc MMC: atmel_mci: enable high speed mode support 2014-08-01 20:01:33 +03:00
mtd sf: sf_ops: Stop leaking memory 2014-08-06 00:18:01 +05:30
net powerpc/T4240QDS/eth: some fix for XFI 2014-08-20 10:44:16 -07:00
pci fsl/pcie: Change 'no link' to 'undetermined' for pcie endpoint 2014-07-22 16:25:54 -07:00
pcmcia mpc8xx: remove RPXlite_dw, quantum board support 2014-07-07 19:43:01 -04:00
power Merge branch 'u-boot-ti/master' into 'u-boot-arm/master' 2014-07-28 12:26:21 +02:00
qe driver/qe: update status of QE microcode 2014-08-20 10:44:16 -07:00
rtc kbuild: use Linux Kernel build scripts 2014-02-19 11:07:50 -05:00
serial omap: clean-up dead configs 2014-08-09 11:17:04 -04:00
sound build: define CPU only when arch/${ARCH}/cpu/${CPU} exists 2014-07-07 19:42:34 -04:00
spi spi, spi_mxc: do not hang in spi_xchg_single 2014-08-06 00:18:01 +05:30
tpm tpm: don't use unneeded double brackets 2014-07-07 19:43:01 -04:00
twserial drivers: convert makefiles to Kbuild style 2013-10-31 13:26:01 -04:00
usb omap: clean-up dead configs 2014-08-09 11:17:04 -04:00
video stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
watchdog blackfin: Fix warning about undefined function 2014-07-07 19:47:09 -04:00
Makefile ARM: keystone: aemif: move aemif driver to drivers/memory/ti-aemif.c 2014-06-19 17:53:58 -04:00