Changeset 20529


Ignore:
Timestamp:
2010-03-28T01:36:04+01:00 (8 years ago)
Author:
nbd
Message:

ar71xx: fix the wan port on pb92

File:
1 edited

Legend:

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

    r20495 r20529  
    8181}; 
    8282 
    83 #define PB92_WAN_PHYMASK        BIT(20) 
    84 #define PB92_LAN_PHYMASK        (BIT(0) | BIT(1) | BIT(2) | BIT(3) | BIT(4)) 
    85 #define PB92_MDIO_PHYMASK       (PB92_LAN_PHYMASK | PB92_WAN_PHYMASK) 
    86  
    8783static void __init pb92_init(void) 
    8884{ 
     85        u8 *mac = (u8 *) KSEG1ADDR(0x1fff0000); 
     86 
     87        ar71xx_set_mac_base(mac); 
    8988        ar71xx_add_device_m25p80(&pb92_flash_data); 
    9089 
    91         ar71xx_add_device_mdio(~PB92_MDIO_PHYMASK); 
    92  
    93         ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII; 
    94         ar71xx_eth0_data.phy_mask = PB92_WAN_PHYMASK; 
     90        ar71xx_add_device_mdio(~0); 
     91        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
     92        ar71xx_eth0_data.speed = SPEED_100; 
     93        ar71xx_eth0_data.duplex = DUPLEX_FULL; 
    9594 
    9695        ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; 
    97         ar71xx_eth1_data.phy_mask = PB92_LAN_PHYMASK; 
    9896        ar71xx_eth1_data.speed = SPEED_1000; 
    9997        ar71xx_eth1_data.duplex = DUPLEX_FULL; 
Note: See TracChangeset for help on using the changeset viewer.