]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
powerpc/t2080qds: fix for 1000BASE-KX
authorShaohui Xie <Shaohui.Xie@freescale.com>
Mon, 20 Oct 2014 11:51:21 +0000 (19:51 +0800)
committerYork Sun <yorksun@freescale.com>
Thu, 20 Nov 2014 02:16:50 +0000 (18:16 -0800)
commit3ce21c87c196d9a0f446e572a30bdb6cdb82d769
tree895a507b3c1e5bce152d9bb5a0ae305e10b90573
parentf0644da50ebbfb371f859ef0b247db3a1a23667c
powerpc/t2080qds: fix for 1000BASE-KX

1000BASE-KX(1G-KX) uses SGMII protocol but the serdes lane runs in 1G-KX
mode. By default, the lane runs in SGMII mode, when a MAC uses a lane
in 1G-KX mode, corresponding bit in PCCR1 for the lane needs to be set,
and needs to fixup dtb accordingly for kernel to do proper initialization.

Hwconfig "fsl_1gkx" is used to indicate a MAC runs in 1G-KX mode, FM1 MAC
1/2/5/6/9/10 are available for 1G-KX, MAC 3/4 run in RGMII mode. To set a
MAC runs in 1G-KX mode, set its' corresponding env in "fsl_1gkx",
'fm1_1g1' stands for FM1-MAC1, 'fm1_1g2' stands for FM1-MAC2, etc.

If all MAC 1/2/5/6/9/10 run in 1G-KX mode, the hwconfig should has below
setting:

fsl_1gkx:fm1_1g1,fm1_1g2,fm1_1g5,fm1_1g6,fm1_1g9,fm1_1g10

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
[York Sun: Fix compiling warning]
Reviewed-by: York Sun <yorksun@freescale.com>
board/freescale/t208xqds/README
board/freescale/t208xqds/eth_t208xqds.c