ar71xx: fix the wan port on pb92
SVN-Revision: 20529
This commit is contained in:
parent
2cc215f121
commit
9c0f21a5b9
1 changed files with 7 additions and 9 deletions
|
@ -80,21 +80,19 @@ static struct gpio_button pb92_gpio_buttons[] __initdata = {
|
|||
}
|
||||
};
|
||||
|
||||
#define PB92_WAN_PHYMASK BIT(20)
|
||||
#define PB92_LAN_PHYMASK (BIT(0) | BIT(1) | BIT(2) | BIT(3) | BIT(4))
|
||||
#define PB92_MDIO_PHYMASK (PB92_LAN_PHYMASK | PB92_WAN_PHYMASK)
|
||||
|
||||
static void __init pb92_init(void)
|
||||
{
|
||||
u8 *mac = (u8 *) KSEG1ADDR(0x1fff0000);
|
||||
|
||||
ar71xx_set_mac_base(mac);
|
||||
ar71xx_add_device_m25p80(&pb92_flash_data);
|
||||
|
||||
ar71xx_add_device_mdio(~PB92_MDIO_PHYMASK);
|
||||
|
||||
ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII;
|
||||
ar71xx_eth0_data.phy_mask = PB92_WAN_PHYMASK;
|
||||
ar71xx_add_device_mdio(~0);
|
||||
ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
||||
ar71xx_eth0_data.speed = SPEED_100;
|
||||
ar71xx_eth0_data.duplex = DUPLEX_FULL;
|
||||
|
||||
ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
||||
ar71xx_eth1_data.phy_mask = PB92_LAN_PHYMASK;
|
||||
ar71xx_eth1_data.speed = SPEED_1000;
|
||||
ar71xx_eth1_data.duplex = DUPLEX_FULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue