Changeset 34373


Ignore:
Timestamp:
2012-11-25T17:23:04+01:00 (5 years ago)
Author:
juhosg
Message:

AA: generic: ar8216: set delay values for SGMII mode on AR8327

Backport of r34315.

Signed-off-by: Gabor Juhos <juhosg@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/attitude_adjustment/target/linux/generic/files/drivers/net/phy/ar8216.c

    r34372 r34373  
    904904        case AR8327_PAD_MAC_SGMII: 
    905905                t = AR8327_PAD_SGMII_EN; 
     906 
     907                /* 
     908                 * WAR for the QUalcomm Atheros AP136 board. 
     909                 * It seems that RGMII TX/RX delay settings needs to be 
     910                 * applied for SGMII mode as well, The ethernet is not 
     911                 * reliable without this. 
     912                 */ 
     913                t |= cfg->txclk_delay_sel << AR8327_PAD_RGMII_TXCLK_DELAY_SEL_S; 
     914                t |= cfg->rxclk_delay_sel << AR8327_PAD_RGMII_RXCLK_DELAY_SEL_S; 
     915                if (cfg->rxclk_delay_en) 
     916                        t |= AR8327_PAD_RGMII_RXCLK_DELAY_EN; 
     917                if (cfg->txclk_delay_en) 
     918                        t |= AR8327_PAD_RGMII_TXCLK_DELAY_EN; 
     919 
    906920                break; 
    907921 
Note: See TracChangeset for help on using the changeset viewer.