aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/patches-3.6
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-12-29 16:02:24 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-12-29 16:02:24 +0000
commit1a379c51125cec2c3e53d01fb98ef041659d4600 (patch)
tree6ab2234cfefe1e074b43a91b1f957729ec8e78b0 /target/linux/ar71xx/patches-3.6
parentc6580f64b88ac3ce5bd909b9e1c52dbb900dcb3c (diff)
downloadupstream-1a379c51125cec2c3e53d01fb98ef041659d4600.tar.gz
upstream-1a379c51125cec2c3e53d01fb98ef041659d4600.tar.bz2
upstream-1a379c51125cec2c3e53d01fb98ef041659d4600.zip
ar71xx: Add support for AP135
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34917
Diffstat (limited to 'target/linux/ar71xx/patches-3.6')
-rw-r--r--target/linux/ar71xx/patches-3.6/611-MIPS-ath79-ap135-support.patch56
1 files changed, 56 insertions, 0 deletions
diff --git a/target/linux/ar71xx/patches-3.6/611-MIPS-ath79-ap135-support.patch b/target/linux/ar71xx/patches-3.6/611-MIPS-ath79-ap135-support.patch
new file mode 100644
index 0000000000..a53eb5f7be
--- /dev/null
+++ b/target/linux/ar71xx/patches-3.6/611-MIPS-ath79-ap135-support.patch
@@ -0,0 +1,56 @@
+--- a/arch/mips/ath79/Kconfig
++++ b/arch/mips/ath79/Kconfig
+@@ -71,7 +71,7 @@ config ATH79_MACH_AP121
+ Atheros AP121 reference board.
+
+ config ATH79_MACH_AP136
+- bool "Atheros AP136 reference board"
++ bool "Atheros AP136/AP135 reference board"
+ select SOC_QCA955X
+ select ATH79_DEV_GPIO_BUTTONS
+ select ATH79_DEV_LEDS_GPIO
+@@ -80,7 +80,7 @@ config ATH79_MACH_AP136
+ select ATH79_DEV_WMAC
+ help
+ Say 'Y' here if you want your kernel to support the
+- Atheros AP136 reference board.
++ Atheros AP136 or AP135 reference boards.
+
+ config ATH79_MACH_AP81
+ bool "Atheros AP81 reference board"
+--- a/arch/mips/ath79/mach-ap136.c
++++ b/arch/mips/ath79/mach-ap136.c
+@@ -237,3 +237,23 @@ static void __init ap136_020_setup(void)
+ MIPS_MACHINE(ATH79_MACH_AP136_020, "AP136-020",
+ "Atheros AP136-020 reference board",
+ ap136_020_setup);
++
++/*
++ * AP135-020 is similar to AP136-020, any future AP135 specific init
++ * code can be added here.
++ */
++static void __init ap135_020_setup(void)
++{
++ ap136_leds_gpio[0].name = "ap135:green:status";
++ ap136_leds_gpio[1].name = "ap135:red:status";
++ ap136_leds_gpio[2].name = "ap135:green:wps";
++ ap136_leds_gpio[3].name = "ap135:red:wps";
++ ap136_leds_gpio[4].name = "ap135:red:wlan-2g";
++ ap136_leds_gpio[5].name = "ap135:red:usb";
++
++ ap136_020_setup();
++}
++
++MIPS_MACHINE(ATH79_MACH_AP135_020, "AP135-020",
++ "Atheros AP135-020 reference board",
++ ap135_020_setup);
+--- a/arch/mips/ath79/machtypes.h
++++ b/arch/mips/ath79/machtypes.h
+@@ -24,6 +24,7 @@ enum ath79_mach_type {
+ ATH79_MACH_AP113, /* Atheros AP113 reference board */
+ ATH79_MACH_AP121, /* Atheros AP121 reference board */
+ ATH79_MACH_AP121_MINI, /* Atheros AP121-MINI reference board */
++ ATH79_MACH_AP135_020, /* Atheros AP135-020 reference board */
+ ATH79_MACH_AP136_010, /* Atheros AP136-010 reference board */
+ ATH79_MACH_AP136_020, /* Atheros AP136-020 reference board */
+ ATH79_MACH_AP81, /* Atheros AP81 reference board */