Changeset 21728


Ignore:
Timestamp:
2010-06-08T22:19:18+02:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: fix phy_mask on the RB433 for the IP17xx driver

File:
1 edited

Legend:

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

    r21075 r21728  
    200200             rb411u_setup); 
    201201 
     202#define RB433_LAN_PHYMASK       BIT(0) 
     203#define RB433_WAN_PHYMASK       BIT(4) 
     204#define RB433_MDIO_PHYMASK      (RB433_LAN_PHYMASK | RB433_WAN_PHYMASK) 
     205 
    202206static void __init rb433_setup(void) 
    203207{ 
     
    205209        rb433_add_device_spi(); 
    206210 
    207         ar71xx_add_device_mdio(0xffffffe9); 
     211        ar71xx_add_device_mdio(~RB433_MDIO_PHYMASK); 
    208212 
    209213        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII; 
    210         ar71xx_eth0_data.speed = SPEED_100; 
    211         ar71xx_eth0_data.duplex = DUPLEX_FULL; 
     214        ar71xx_eth0_data.phy_mask = RB433_LAN_PHYMASK; 
    212215 
    213216        ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
    214         ar71xx_eth1_data.phy_mask = 0x00000010; 
     217        ar71xx_eth1_data.phy_mask = RB433_WAN_PHYMASK; 
    215218 
    216219        ar71xx_add_device_eth(1); 
Note: See TracChangeset for help on using the changeset viewer.