• Joel Stanley's avatar
    net/faraday: Adapt for Aspeed SoCs · 2a0ab8eb
    Joel Stanley authored
    The RXDES and TXDES registers bits in the ftgmac100 indicates EDO{R,T}R
    at bit position 15 for the Faraday Tech IP. However, the version of this
    IP present in the Aspeed SoCs has these bits at position 30 in the
    registers.
    
    It appers that ast2400 SoCs support both positions, with the 15th bit
    marked as reserved but still functional. In the ast2500 this bit is
    reused for another function, so we need a work around.
    
    This was confirmed with engineers from Aspeed that using bit 30 is
    correct for both the ast2400 and ast2500 SoCs.
    Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    2a0ab8eb
ftgmac100.c 37.8 KB