aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79/mach-all0315n.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-08-29 10:37:54 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-08-29 10:37:54 +0000
commitbbf079b1d1bb923f1560b61d58c7103a9de21cb0 (patch)
tree09d3ba438d3af4052133603e93892d5b232c5a9c /target/linux/ar71xx/files/arch/mips/ath79/mach-all0315n.c
parent9a56a87ead132c16c27cc11a4a7767be1298628f (diff)
downloadmaster-187ad058-bbf079b1d1bb923f1560b61d58c7103a9de21cb0.tar.gz
master-187ad058-bbf079b1d1bb923f1560b61d58c7103a9de21cb0.tar.bz2
master-187ad058-bbf079b1d1bb923f1560b61d58c7103a9de21cb0.zip
ar71xx: all0315n: fix ethernet according to vendor info
Signed-off-by: Daniel Golle <dgolle@allnet.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33309 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-all0315n.c')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-all0315n.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-all0315n.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-all0315n.c
index 7d5377480a..387ee7f9ea 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-all0315n.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-all0315n.c
@@ -65,20 +65,10 @@ static void __init all0315n_setup(void)
ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0);
ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
- ath79_eth0_data.speed = SPEED_1000;
- ath79_eth0_data.duplex = DUPLEX_FULL;
ath79_eth0_data.phy_mask = BIT(0);
- ath79_init_mac(ath79_eth1_data.mac_addr, mac, 1);
- ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
- ath79_eth1_data.speed = SPEED_1000;
- ath79_eth1_data.duplex = DUPLEX_FULL;
- ath79_eth1_data.phy_mask = BIT(4);
-
- ath79_register_mdio(0, ~(BIT(0) | BIT(4)));
+ ath79_register_mdio(0, 0x0);
ath79_register_eth(0);
- ath79_register_eth(1);
-
ath79_register_leds_gpio(-1, ARRAY_SIZE(all0315n_leds_gpio),
all0315n_leds_gpio);
@@ -88,7 +78,7 @@ static void __init all0315n_setup(void)
all0315n_gpio_keys);
ap9x_pci_setup_wmac_led_pin(0, 1);
- ap91_pci_init(ee, mac);
+ ap91_pci_init(ee, NULL);
}
MIPS_MACHINE(ATH79_MACH_ALL0315N, "ALL0315N", "Allnet ALL0315N",