Changeset 19185


Ignore:
Timestamp:
2010-01-17T15:33:26+01:00 (8 years ago)
Author:
juhosg
Message:

ar71xx: fix phy interface selection for the RB-450G

Patch from: https://forum.openwrt.org/viewtopic.php?pid=95865#p95865

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb-4xx.c

    r19184 r19185  
    249249        ar71xx_add_device_mdio(0xffffffe0); 
    250250 
    251         ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII; 
     251        ar71xx_eth0_data.phy_if_mode = (gige) ? PHY_INTERFACE_MODE_RGMII : PHY_INTERFACE_MODE_MII; 
    252252        ar71xx_eth0_data.phy_mask = 0x0000000f; 
    253253        ar71xx_eth0_data.speed = (gige) ? SPEED_1000 : SPEED_100; 
    254254        ar71xx_eth0_data.duplex = DUPLEX_FULL; 
    255255 
    256         ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
     256        ar71xx_eth1_data.phy_if_mode = (gige) ? PHY_INTERFACE_MODE_RGMII : PHY_INTERFACE_MODE_RMII; 
    257257        ar71xx_eth1_data.phy_mask = 0x00000010; 
    258258 
Note: See TracChangeset for help on using the changeset viewer.