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-mzk-w300nh.c

    r21173 r22700  
    129129        u8 *eeprom = (u8 *) KSEG1ADDR(0x1fff1000); 
    130130 
    131         ar71xx_set_mac_base(eeprom); 
    132  
    133131        ar71xx_add_device_mdio(MZK_W300NH_MDIO_MASK); 
    134132 
     133        ar71xx_init_mac(ar71xx_eth0_data.mac_addr, eeprom, 0); 
    135134        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
    136135        ar71xx_eth0_data.speed = SPEED_100; 
     
    138137        ar71xx_eth0_data.has_ar8216 = 1; 
    139138 
     139        ar71xx_init_mac(ar71xx_eth1_data.mac_addr, eeprom, 1); 
    140140        ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
    141141        ar71xx_eth1_data.phy_mask = MZK_W300NH_WAN_PHYMASK; 
Note: See TracChangeset for help on using the changeset viewer.