]> git.sur5r.net Git - u-boot/commit
SGMII:fix PHY addresses for QSGMII Riser Card working in SGMII mode
authorZhao Qiang <B45475@freescale.com>
Wed, 4 Sep 2013 02:11:27 +0000 (10:11 +0800)
committerYork Sun <yorksun@freescale.com>
Wed, 16 Oct 2013 23:13:11 +0000 (16:13 -0700)
commitffee1dde3c4cb2721c56c78e0360affec1c23d3f
treefc87c859def7c217c5caca59a4a9ac3f0eae69bc
parentd56898249c09f8264fc398dd209c293116a293c9
SGMII:fix PHY addresses for QSGMII Riser Card working in SGMII mode

Fix PHY addresses for QSGMII Riser Card working in
SGMII mode on board P3041/P5020/P4080/P5040/B4860.

QSGMII Riser Card can work in SGMII mode, but
having the different PHY addresses.
So the following steps should be done:
1. Confirm whether QSGMII Riser Card is used.
2. If yes, set the proper PHY address.
Generally, the function is_qsgmii_riser_card() is
for step 1, and set_sgmii_phy() for step 2.

However, there are still some special situations,
take P5040 and B4860 as examples, the PHY addresses
need to be changed when serdes protocol is changed,
so it is necessary to confirm the protocol before
setting PHY addresses.

Signed-off-by: Zhao Qiang <B45475@freescale.com>
board/freescale/b4860qds/b4860qds_qixis.h
board/freescale/b4860qds/eth_b4860qds.c
board/freescale/corenet_ds/eth_hydra.c
board/freescale/corenet_ds/eth_p4080.c
board/freescale/corenet_ds/eth_superhydra.c
drivers/net/fm/fm.h
drivers/net/fm/init.c
include/fm_eth.h