diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-12-15 21:34:18 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-12-15 21:34:18 +0000 |
commit | fd393c0b05d304e2ce4178a9cd7a9e9067532cc4 (patch) | |
tree | 433120a5e9387ee54095c91a4cfe894aded1fee9 | |
parent | 9ce06f2ac836e183723a0a9d124a1a7972a0c4e8 (diff) | |
download | upstream-fd393c0b05d304e2ce4178a9cd7a9e9067532cc4.tar.gz upstream-fd393c0b05d304e2ce4178a9cd7a9e9067532cc4.tar.bz2 upstream-fd393c0b05d304e2ce4178a9cd7a9e9067532cc4.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>
SVN-Revision: 39073
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c | 17 | ||||
-rw-r--r-- | target/linux/ar71xx/patches-3.10/701-MIPS-ath79-add-TL-WA901ND-v3-support.patch | 10 |
2 files changed, 26 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); diff --git a/target/linux/ar71xx/patches-3.10/701-MIPS-ath79-add-TL-WA901ND-v3-support.patch b/target/linux/ar71xx/patches-3.10/701-MIPS-ath79-add-TL-WA901ND-v3-support.patch new file mode 100644 index 0000000000..5453f70a73 --- /dev/null +++ b/target/linux/ar71xx/patches-3.10/701-MIPS-ath79-add-TL-WA901ND-v3-support.patch @@ -0,0 +1,10 @@ +--- a/arch/mips/ath79/machtypes.h ++++ b/arch/mips/ath79/machtypes.h +@@ -103,6 +103,7 @@ enum ath79_mach_type { + ATH79_MACH_TL_WA801ND_V2, /* TP-LINK TL-WA801ND v2 */ + ATH79_MACH_TL_WA901ND, /* TP-LINK TL-WA901ND */ + ATH79_MACH_TL_WA901ND_V2, /* TP-LINK TL-WA901ND v2 */ ++ ATH79_MACH_TL_WA901ND_V3, /* TP-LINK TL-WA901ND v3 */ + ATH79_MACH_TL_WDR3500, /* TP-LINK TL-WDR3500 */ + ATH79_MACH_TL_WDR4300, /* TP-LINK TL-WDR4300 */ + ATH79_MACH_TL_WR1041N_V2, /* TP-LINK TL-WR1041N v2 */ |