powerpc/t2080qds: fix for 1000BASE-KX
PATCH v2 2/2 powerpc/t2080qds: fix for 1000BASE-KX
From: Shaohui Xie <[email protected]>
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
---
changes for V2:
- add 1G-KX description in t208xqds README.
- refined commit message.
board/freescale/t208xqds/README | 12 +++++ board/freescale/t208xqds/eth_t208xqds.c | 86 +++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+)
board/freescale/t208xqds/README +12 -0
@@ -104,6 +104,18 @@ XFI: set "fsl_10gkr_copper:fm1_10g1,fm1_10g2" in hwconfig, then first two XFI ports will use copper cable, the other two XFI ports will use fiber cable. +1000BASE-KX(1G-KX): + - T2080QDS can support 1G-KX by using SGMII protocol, but serdes lane + runs in 1G-KX mode. By default, the lane runs in SGMII mode, to set a lane + in 1G-KX mode, need to set corresponding bit in SerDes Protocol Configuration + Register 1 (PCCR1), and U-boot fixup the dtb for kernel to do proper + initialization. + Hwconfig "fsl_1gkx" is used to indicate a lane runs in 1G-KX mode, MAC + 1/2/5/6/9/10 are available for 1G-KX, MAC 3/4 run in RGMII mode. To set a + MAC to use 1G-KX mode, set its' corresponding env in "fsl_1gkx", 'fm1_1g1' + stands for MAC 1, 'fm1_1g2' stands for MAC 2, etc. + For ex. set "fsl_1gkx:fm1_1g1,fm1_1g2,fm1_1g5,fm1_1g6,fm1_1g9,fm1_1g10" in + hwconfig, MAC 1/2/5/6/9/10 will use 1G-KX mode. System Memory map ----------------
board/freescale/t208xqds/eth_t208xqds.c +86 -0
120 lines not on this page · raw message
Signature · 1 line
1.8.0
PATCH v2 2/2 powerpc/t2080qds: fix for 1000BASE-KX
Quoted 17 lines · shh.xie at gmail.com
From: Shaohui Xie <[email protected]>
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
Quoted 8 lines
Signed-off-by Shaohui Xie <[email protected]>---
changes for V2:
- add 1G-KX description in t208xqds README.
- refined commit message.board/freescale/t208xqds/README | 12 +++++ board/freescale/t208xqds/eth_t208xqds.c | 86 +++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+)
Applied to u-boot-mpc85xx master. Awaiting upstream. Thanks.
York