1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-06 02:16:21 +03:00

[ar71xx] wnr2000: configure eth1 (WAN) and detect the ar8216 switch on eth0 (LAN)

ar8216 headers are embedded in packets on eth0 so it is not usable yet

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14661 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
agb 2009-02-26 01:22:57 +00:00
parent 07fb674250
commit a1a27e7336

View File

@ -127,6 +127,19 @@ static struct gpio_button wnr2000_gpio_buttons[] __initdata = {
static void __init wnr2000_setup(void)
{
ar71xx_add_device_mdio(0x0);
ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
ar71xx_eth0_data.phy_mask = 0xf;
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 = 0x10;
ar71xx_add_device_eth(0);
ar71xx_add_device_eth(1);
ar71xx_add_device_spi(NULL, wnr2000_spi_info,
ARRAY_SIZE(wnr2000_spi_info));