diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-03-28 00:36:04 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-03-28 00:36:04 +0000 |
commit | 159a5e0667474606fcd1afb1ce43d029fda5f896 (patch) | |
tree | ba6aa70deb90d50352be64e060d0e2eb19677f71 /target/linux/ar71xx | |
parent | 19f9c43c953548efdca1db329b4af05022ceb8d9 (diff) | |
download | upstream-159a5e0667474606fcd1afb1ce43d029fda5f896.tar.gz upstream-159a5e0667474606fcd1afb1ce43d029fda5f896.tar.bz2 upstream-159a5e0667474606fcd1afb1ce43d029fda5f896.zip |
ar71xx: fix the wan port on pb92
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20529 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb92.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb92.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb92.c index e3688954df..b422c3ebf0 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb92.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb92.c @@ -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) { - ar71xx_add_device_m25p80(&pb92_flash_data); + u8 *mac = (u8 *) KSEG1ADDR(0x1fff0000); - ar71xx_add_device_mdio(~PB92_MDIO_PHYMASK); + ar71xx_set_mac_base(mac); + ar71xx_add_device_m25p80(&pb92_flash_data); - 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; |