Changeset 21743


Ignore:
Timestamp:
2010-06-09T21:48:35+02:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: fix phy_mask for the RB450

File:
1 edited

Legend:

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

    r21728 r21743  
    235235             rb433u_setup); 
    236236 
     237#define RB450_LAN_PHYMASK       BIT(0) 
     238#define RB450_WAN_PHYMASK       BIT(4) 
     239#define RB450_MDIO_PHYMASK      (RB450_LAN_PHYMASK | RB450_WAN_PHYMASK) 
     240 
    237241static void __init rb450_generic_setup(int gige) 
    238242{ 
     
    240244        rb4xx_add_device_spi(); 
    241245 
    242         ar71xx_add_device_mdio(0xffffffe0); 
     246        ar71xx_add_device_mdio(~RB450_MDIO_PHYMASK); 
    243247 
    244248        ar71xx_eth0_data.phy_if_mode = (gige) ? PHY_INTERFACE_MODE_RGMII : PHY_INTERFACE_MODE_MII; 
    245         ar71xx_eth0_data.phy_mask = (gige) ? (1 << 0) : 0; 
    246         ar71xx_eth0_data.speed = (gige) ? SPEED_1000 : SPEED_100; 
    247         ar71xx_eth0_data.duplex = DUPLEX_FULL; 
     249        ar71xx_eth0_data.phy_mask = RB450_LAN_PHYMASK; 
    248250 
    249251        ar71xx_eth1_data.phy_if_mode = (gige) ? PHY_INTERFACE_MODE_RGMII : PHY_INTERFACE_MODE_RMII; 
    250         ar71xx_eth1_data.phy_mask = 0x00000010; 
     252        ar71xx_eth1_data.phy_mask = RB450_WAN_PHYMASK; 
    251253 
    252254        ar71xx_add_device_eth(1); 
Note: See TracChangeset for help on using the changeset viewer.