From e202a8b9f6ecf02d42da4781dc5e27abe957f7dc Mon Sep 17 00:00:00 2001
From: Paul Wassi
Date: Sun, 22 Oct 2017 22:39:30 +0200
Subject: ar71xx: add support for TP-Link TL-WA901ND v5
The TL-WA901ND v5 has the same hardware as v4, although the PCB has
a different layout. Installation from factory is done via TFTP.
(rename -factory image to wa901ndv4_tp_recovery.bin for tftp)
Signed-off-by: Paul Wassi
---
target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa901nd-v4.c | 5 ++++-
target/linux/ar71xx/files/arch/mips/ath79/machtypes.h | 1 +
2 files changed, 5 insertions(+), 1 deletion(-)
(limited to 'target/linux/ar71xx/files')
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa901nd-v4.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa901nd-v4.c
index 9c651bb1d2..ffbcd6fe42 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa901nd-v4.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa901nd-v4.c
@@ -1,5 +1,5 @@
/*
- * TP-LINK TL-WA901ND v4 board
+ * TP-LINK TL-WA901ND v4, v5 board
*
* Copyright (C) 2015 Matthias Schiffer
* Copyright (C) 2016 Tiziano Bacocco
@@ -110,3 +110,6 @@ static void __init TL_WA901ND_V4_setup(void)
MIPS_MACHINE(ATH79_MACH_TL_WA901ND_V4, "TL-WA901ND-v4", "TP-LINK TL-WA901ND v4",
TL_WA901ND_V4_setup);
+
+MIPS_MACHINE(ATH79_MACH_TL_WA901ND_V5, "TL-WA901ND-v5", "TP-LINK TL-WA901ND v5",
+ TL_WA901ND_V4_setup);
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h b/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
index a08e3a93d9..146a79d048 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
+++ b/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
@@ -239,6 +239,7 @@ enum ath79_mach_type {
ATH79_MACH_TL_WA901ND_V2, /* TP-LINK TL-WA901ND v2 */
ATH79_MACH_TL_WA901ND_V3, /* TP-LINK TL-WA901ND v3 */
ATH79_MACH_TL_WA901ND_V4, /* TP-LINK TL-WA901ND v4 */
+ ATH79_MACH_TL_WA901ND_V5, /* TP-LINK TL-WA901ND v5 */
ATH79_MACH_TL_WDR3320_V2, /* TP-LINK TL-WDR3320 v2 */
ATH79_MACH_TL_WDR3500, /* TP-LINK TL-WDR3500 */
ATH79_MACH_TL_WDR4300, /* TP-LINK TL-WDR4300 */
--
cgit v1.2.3