Changeset 27282


Ignore:
Timestamp:
2011-06-25T15:48:47+02:00 (7 years ago)
Author:
nbd
Message:

ar71xx: bring up secondary radio on wzr-hp-ag300h (fixes #9608)

File:
1 edited

Legend:

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

    r27075 r27282  
    190190static void __init wzrhpag300h_setup(void) 
    191191{ 
    192         u8 *eeprom = (u8 *) KSEG1ADDR(0x1f051000); 
    193         u8 *mac = eeprom + WZRHPAG300H_MAC_OFFSET; 
    194  
    195         ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 0); 
    196         ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, 1); 
     192        u8 *eeprom1 = (u8 *) KSEG1ADDR(0x1f051000); 
     193        u8 *eeprom2 = (u8 *) KSEG1ADDR(0x1f055000); 
     194        u8 *mac1 = eeprom1 + WZRHPAG300H_MAC_OFFSET; 
     195        u8 *mac2 = eeprom2 + WZRHPAG300H_MAC_OFFSET; 
     196 
     197        ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac1, 0); 
     198        ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac2, 1); 
    197199 
    198200        ar71xx_add_device_mdio(~(BIT(0) | BIT(4))); 
     
    225227#endif 
    226228 
    227         ap94_pci_init(eeprom, mac, NULL, NULL); 
     229        ap94_pci_init(eeprom1, mac1, eeprom2, mac2); 
    228230} 
    229231 
Note: See TracChangeset for help on using the changeset viewer.