From c4d237f459113af5f306b78a0d22f5c4abf28546 Mon Sep 17 00:00:00 2001 From: jogo Date: Thu, 28 Jul 2011 12:20:28 +0000 Subject: [PATCH] [backfire] ar71xx: Add generic Buffalo WZR-HP-G30XNH support Use generic switch0 to add support for both WZR-HP-G301NH and WZR-HP-G300NH with RTL8366RB. git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@27816 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../ar71xx/base-files/etc/defconfig/wzr-hp-g300nh/network | 4 ++-- .../ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c | 6 +++--- target/linux/ar71xx/profiles/buffalo.mk | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target/linux/ar71xx/base-files/etc/defconfig/wzr-hp-g300nh/network b/target/linux/ar71xx/base-files/etc/defconfig/wzr-hp-g300nh/network index 48477fab1..f274aa374 100644 --- a/target/linux/ar71xx/base-files/etc/defconfig/wzr-hp-g300nh/network +++ b/target/linux/ar71xx/base-files/etc/defconfig/wzr-hp-g300nh/network @@ -16,11 +16,11 @@ config interface wan option proto dhcp config switch - option name rtl8366s + option name switch0 option reset 1 option enable_vlan 1 config switch_vlan - option device rtl8366s + option device switch0 option vlan 1 option ports "0 1 2 3 5" diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c index 8ba0ee39b..66009a109 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c @@ -225,7 +225,7 @@ static struct platform_device wzrhpg300nh_rtl8366s_device = { } }; -static struct platform_device wzrhpg301nh_rtl8366rb_device = { +static struct platform_device wzrhpg300nh_rtl8366rb_device = { .name = RTL8366RB_DRIVER_NAME, .id = -1, .dev = { @@ -245,9 +245,9 @@ static void __init wzrhpg300nh_setup(void) if (hasrtl8366rb) { ar71xx_eth0_pll_data.pll_1000 = 0x1f000000; - ar71xx_eth0_data.mii_bus_dev = &wzrhpg301nh_rtl8366rb_device.dev; + ar71xx_eth0_data.mii_bus_dev = &wzrhpg300nh_rtl8366rb_device.dev; ar71xx_eth1_pll_data.pll_1000 = 0x100; - ar71xx_eth1_data.mii_bus_dev = &wzrhpg301nh_rtl8366rb_device.dev; + ar71xx_eth1_data.mii_bus_dev = &wzrhpg300nh_rtl8366rb_device.dev; } else { ar71xx_eth0_pll_data.pll_1000 = 0x1e000100; ar71xx_eth0_data.mii_bus_dev = &wzrhpg300nh_rtl8366s_device.dev; diff --git a/target/linux/ar71xx/profiles/buffalo.mk b/target/linux/ar71xx/profiles/buffalo.mk index 69819e586..ffaa0c58d 100644 --- a/target/linux/ar71xx/profiles/buffalo.mk +++ b/target/linux/ar71xx/profiles/buffalo.mk @@ -11,7 +11,7 @@ define Profile/WZRHPG300NH endef define Profile/WZRHPG300NH/Description - Package set optimized for the Buffalo WZR-HP-G300NH + Package set optimized for the Buffalo WZR-HP-G300NH and WZR-HP-G301NH endef $(eval $(call Profile,WZRHPG300NH)) -- 2.35.1