Skip to content
  • Zhao Qiang's avatar
    SGMII:fix PHY addresses for QSGMII Riser Card working in SGMII mode · ffee1dde
    Zhao Qiang authored
    
    
    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: default avatarZhao Qiang <B45475@freescale.com>
    ffee1dde