Ignore:
Timestamp:
2010-08-18T18:00:28+02:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: change mac address initialization

File:
1 edited

Legend:

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

    r21743 r22700  
    180180        ar71xx_add_device_mdio(0xfffffffc); 
    181181 
     182        ar71xx_init_mac(ar71xx_eth0_data.mac_addr, ar71xx_mac_base, 0); 
    182183        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII; 
    183184        ar71xx_eth0_data.phy_mask = 0x00000003; 
     
    211212        ar71xx_add_device_mdio(~RB433_MDIO_PHYMASK); 
    212213 
     214        ar71xx_init_mac(ar71xx_eth0_data.mac_addr, ar71xx_mac_base, 1); 
    213215        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII; 
    214216        ar71xx_eth0_data.phy_mask = RB433_LAN_PHYMASK; 
    215217 
     218        ar71xx_init_mac(ar71xx_eth1_data.mac_addr, ar71xx_mac_base, 0); 
    216219        ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
    217220        ar71xx_eth1_data.phy_mask = RB433_WAN_PHYMASK; 
     
    246249        ar71xx_add_device_mdio(~RB450_MDIO_PHYMASK); 
    247250 
     251        ar71xx_init_mac(ar71xx_eth0_data.mac_addr, ar71xx_mac_base, 1); 
    248252        ar71xx_eth0_data.phy_if_mode = (gige) ? PHY_INTERFACE_MODE_RGMII : PHY_INTERFACE_MODE_MII; 
    249253        ar71xx_eth0_data.phy_mask = RB450_LAN_PHYMASK; 
    250254 
     255        ar71xx_init_mac(ar71xx_eth1_data.mac_addr, ar71xx_mac_base, 0); 
    251256        ar71xx_eth1_data.phy_if_mode = (gige) ? PHY_INTERFACE_MODE_RGMII : PHY_INTERFACE_MODE_RMII; 
    252257        ar71xx_eth1_data.phy_mask = RB450_WAN_PHYMASK; 
     
    279284        ar71xx_add_device_mdio(0x3fffff00); 
    280285 
     286        ar71xx_init_mac(ar71xx_eth0_data.mac_addr, ar71xx_mac_base, 0); 
    281287        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII; 
    282288        ar71xx_eth0_data.speed = SPEED_100; 
    283289        ar71xx_eth0_data.duplex = DUPLEX_FULL; 
    284290 
     291        ar71xx_init_mac(ar71xx_eth1_data.mac_addr, ar71xx_mac_base, 1); 
    285292        ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
    286293        ar71xx_eth1_data.phy_mask = 0x00000001; 
Note: See TracChangeset for help on using the changeset viewer.