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-tl-wr741nd.c

    r28982 r29103  
    109109                                         tl_wr741nd_gpio_keys); 
    110110 
    111         ar71xx_eth1_data.has_ar7240_switch = 1; 
    112111        ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 0); 
    113112        ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, 1); 
    114113 
    115         /* WAN port */ 
    116         ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
    117         ar71xx_eth0_data.speed = SPEED_100; 
    118         ar71xx_eth0_data.duplex = DUPLEX_FULL; 
    119         ar71xx_eth0_data.phy_mask = BIT(4); 
     114        ar71xx_add_device_mdio(0, 0x0); 
    120115 
    121116        /* LAN ports */ 
    122         ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
    123         ar71xx_eth1_data.speed = SPEED_1000; 
    124         ar71xx_eth1_data.duplex = DUPLEX_FULL; 
     117        ar71xx_add_device_eth(1); 
    125118 
    126         ar71xx_add_device_mdio(0, 0x0); 
    127         ar71xx_add_device_eth(1); 
     119        /* WAN port */ 
    128120        ar71xx_add_device_eth(0); 
    129121 
Note: See TracChangeset for help on using the changeset viewer.