Ignore:
Timestamp:
2011-11-14T08:38:09+01:00 (4 years ago)
Author:
juhosg
Message:

ar71xx: remove hardwired interface parameters from mach-* files

File:
1 edited

Legend:

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

    r28982 r29103  
    189189        ar71xx_init_mac(ar71xx_eth1_data.mac_addr, art + AP121_MAC1_OFFSET, 0); 
    190190 
     191        ar71xx_add_device_mdio(0, 0x0); 
     192 
     193        /* LAN ports */ 
     194        ar71xx_add_device_eth(1); 
     195 
    191196        /* WAN port */ 
    192         ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
    193         ar71xx_eth0_data.speed = SPEED_100; 
    194         ar71xx_eth0_data.duplex = DUPLEX_FULL; 
    195         ar71xx_eth0_data.phy_mask = BIT(4); 
    196  
    197         /* LAN ports */ 
    198         ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
    199         ar71xx_eth1_data.speed = SPEED_1000; 
    200         ar71xx_eth1_data.duplex = DUPLEX_FULL; 
    201         ar71xx_eth1_data.has_ar7240_switch = 1; 
    202  
    203         ar71xx_add_device_mdio(0, 0x0); 
    204         ar71xx_add_device_eth(1); 
    205197        ar71xx_add_device_eth(0); 
    206198 
Note: See TracChangeset for help on using the changeset viewer.