Changeset 14921


Ignore:
Timestamp:
2009-03-17T19:07:16+01:00 (8 years ago)
Author:
juhosg
Message:

[ar71xx] ap81: register ethernet devices, and add default network configuration file

Location:
trunk/target/linux/ar71xx
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh

    r14876 r14921  
    1111 
    1212        case "$machine" in 
     13        *AP81) 
     14                name="ap81" 
     15                ;; 
    1316        *AW-NR580) 
    1417                name="aw-nr580" 
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c

    r14888 r14921  
    1717static void __init ap81_setup(void) 
    1818{ 
     19        ar71xx_add_device_mdio(0x0); 
     20 
     21        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
     22        ar71xx_eth0_data.phy_mask = 0xf; 
     23        ar71xx_eth0_data.speed = SPEED_100; 
     24        ar71xx_eth0_data.duplex = DUPLEX_FULL; 
     25        ar71xx_eth0_data.has_ar8216 = 1; 
     26 
     27        ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
     28        ar71xx_eth1_data.phy_mask = 0x10; 
     29 
     30        ar71xx_add_device_eth(0); 
     31        ar71xx_add_device_eth(1); 
     32 
    1933        ar91xx_add_device_wmac(); 
    2034} 
Note: See TracChangeset for help on using the changeset viewer.