Changeset 20763


Ignore:
Timestamp:
2010-04-09T14:06:23+02:00 (7 years ago)
Author:
juhosg
Message:

backfire: ar71xx: update phy masks for the Planex boards (backport of r20754)

This avoids probing of the AR8216 chip on the eth0 interface.

Location:
branches/backfire/target/linux/ar71xx/files/arch/mips/ar71xx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w04nu.c

    r20358 r20763  
    127127}; 
    128128 
     129#define MZK_W04NU_WAN_PHYMASK   BIT(4) 
     130#define MZK_W04NU_MDIO_MASK     (~MZK_W04NU_WAN_PHYMASK) 
     131 
    129132static void __init mzk_w04nu_setup(void) 
    130133{ 
     
    133136        ar71xx_set_mac_base(eeprom); 
    134137 
    135         ar71xx_add_device_mdio(0x0); 
     138        ar71xx_add_device_mdio(MZK_W04NU_MDIO_MASK); 
    136139 
    137140        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
     
    141144 
    142145        ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
    143         ar71xx_eth1_data.phy_mask = 0x10; 
     146        ar71xx_eth1_data.phy_mask = MZK_W04NU_WAN_PHYMASK; 
    144147 
    145148        ar71xx_add_device_eth(0); 
  • branches/backfire/target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w300nh.c

    r20358 r20763  
    126126}; 
    127127 
     128#define MZK_W300NH_WAN_PHYMASK  BIT(4) 
     129#define MZK_W300NH_MDIO_MASK    (~MZK_W300NH_WAN_PHYMASK) 
     130 
    128131static void __init mzk_w300nh_setup(void) 
    129132{ 
     
    132135        ar71xx_set_mac_base(eeprom); 
    133136 
    134         ar71xx_add_device_mdio(0x0); 
     137        ar71xx_add_device_mdio(MZK_W300NH_MDIO_MASK); 
    135138 
    136139        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
     
    140143 
    141144        ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
    142         ar71xx_eth1_data.phy_mask = 0x10; 
     145        ar71xx_eth1_data.phy_mask = MZK_W300NH_WAN_PHYMASK; 
    143146 
    144147        ar71xx_add_device_eth(0); 
Note: See TracChangeset for help on using the changeset viewer.