Ignore:
Timestamp:
2009-07-31T09:01:26+02:00 (7 years ago)
Author:
juhosg
Message:

[ar71xx] add ethernet suppor for the WRT160NL (thanks to Christian Daniel)

File:
1 edited

Legend:

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

    r16068 r17057  
    7272static void __init wrt160nl_setup(void) 
    7373{ 
    74         /* TODO: ethernet, LEDs, buttons */ 
     74        ar71xx_add_device_mdio(0x0); 
     75 
     76        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
     77        ar71xx_eth0_data.phy_mask = 0xf; 
     78        ar71xx_eth0_data.speed = SPEED_100; 
     79        ar71xx_eth0_data.duplex = DUPLEX_FULL; 
     80 
     81        ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
     82        ar71xx_eth1_data.phy_mask = 0x10; 
     83 
     84        ar71xx_add_device_eth(0); 
     85        ar71xx_add_device_eth(1); 
    7586 
    7687        ar71xx_add_device_spi(NULL, wrt160nl_spi_info, 
     
    7990        ar71xx_add_device_usb(); 
    8091        ar91xx_add_device_wmac(); 
     92 
     93        /* TODO: LEDs, buttons */ 
    8194} 
    8295 
Note: See TracChangeset for help on using the changeset viewer.