Ignore:
Timestamp:
2010-04-09T14:06:12+02:00 (6 years ago)
Author:
juhosg
Message:

backfire: ar71xx: make the AR8216 driver usable on the TEW-632BRP/DIR-615-Cx boards (backport of r20752)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c

    r20358 r20761  
    105105}; 
    106106 
     107#define TEW_632BRP_LAN_PHYMASK  BIT(0) 
     108#define TEW_632BRP_WAN_PHYMASK  BIT(4) 
     109#define TEW_632BRP_MDIO_MASK    (~(TEW_632BRP_LAN_PHYMASK | \ 
     110                                   TEW_632BRP_WAN_PHYMASK)) 
     111 
    107112static void __init tew_632brp_setup(void) 
    108113{ 
     
    118123        } 
    119124 
    120         ar71xx_add_device_mdio(0x0); 
     125        ar71xx_add_device_mdio(TEW_632BRP_MDIO_MASK); 
    121126 
    122127        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
    123         ar71xx_eth0_data.speed = SPEED_100; 
    124         ar71xx_eth0_data.duplex = DUPLEX_FULL; 
     128        ar71xx_eth0_data.phy_mask = TEW_632BRP_LAN_PHYMASK; 
    125129 
    126130        ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
    127         ar71xx_eth1_data.phy_mask = 0x10; 
     131        ar71xx_eth1_data.phy_mask = TEW_632BRP_WAN_PHYMASK; 
    128132 
    129133        ar71xx_add_device_eth(0); 
Note: See TracChangeset for help on using the changeset viewer.