aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-12-15 21:34:18 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-12-15 21:34:18 +0000
commit3d3252ab72db7f46f93b0a5f2a98b0cf5bfadfc9 (patch)
treedd9507e0ff914870206fb9bdd0d910f8bb531a5d /target/linux/ar71xx/files/arch/mips
parentd81ea5145f64ee3f0fd0764858a318b57e3b4897 (diff)
downloadmaster-187ad058-3d3252ab72db7f46f93b0a5f2a98b0cf5bfadfc9.tar.gz
master-187ad058-3d3252ab72db7f46f93b0a5f2a98b0cf5bfadfc9.tar.bz2
master-187ad058-3d3252ab72db7f46f93b0a5f2a98b0cf5bfadfc9.zip
ar71xx: add kernel support for the TL-WA901ND v3 board
Based-on: http://patchwork.openwrt.org/patch/4506/ Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39073 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
index 8d2074f4b8..cdb1f5a4d4 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
@@ -1,5 +1,6 @@
/*
- * TP-LINK TL-WA750RE v1/TL-WA801ND v2/TL-WA850RE v1 board support
+ * TP-LINK TL-WA750RE v1/TL-WA801ND v2/TL-WA850RE v1/TL-WA901ND v3
+ * board support
*
* Copyright (C) 2013 Martijn Zilverschoon <thefriedzombie@gmail.com>
* Copyright (C) 2013 Jiri Pirko <jiri@resnulli.us>
@@ -223,3 +224,17 @@ static void __init tl_wa850re_setup(void)
MIPS_MACHINE(ATH79_MACH_TL_WA850RE, "TL-WA850RE", "TP-LINK TL-WA850RE",
tl_wa850re_setup);
+
+static void __init tl_wa901nd_v3_setup(void)
+{
+ tl_ap123_setup();
+ ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wa801nd_v2_leds_gpio),
+ tl_wa801nd_v2_leds_gpio);
+
+ ath79_register_gpio_keys_polled(-1, TL_WAX50RE_KEYS_POLL_INTERVAL,
+ ARRAY_SIZE(tl_wax50re_gpio_keys) - 1,
+ tl_wax50re_gpio_keys);
+}
+
+MIPS_MACHINE(ATH79_MACH_TL_WA901ND_V3, "TL-WA901ND-v3", "TP-LINK TL-WA901ND v3",
+ tl_wa901nd_v3_setup);