From 743ba02fe943b1aaffc5379268fb26f9f2a8640f Mon Sep 17 00:00:00 2001
From: "J. Burfeind" <git@aiyionpri.me>
Date: Thu, 5 May 2022 11:10:07 +0200
Subject: [PATCH] ramips-mt76x8: add support for TP-Link Archer C20 v4 (#2500)

Co-authored-by: Ilja Gerhardt <ilja@cryptix.net>

Co-authored-by: Ilja Gerhardt <ilja@cryptix.net>
---
 docs/user/supported_devices.rst | 2 +-
 targets/ramips-mt76x8           | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst
index 89d93d23..4d87f90f 100644
--- a/docs/user/supported_devices.rst
+++ b/docs/user/supported_devices.rst
@@ -323,7 +323,7 @@ ramips-mt76x8
 
 * TP-Link
 
-  - Archer C20 (v5)
+  - Archer C20 (v4, v5)
   - Archer C50 (v3)
   - Archer C50 (v4)
   - RE200 (v2)
diff --git a/targets/ramips-mt76x8 b/targets/ramips-mt76x8
index ca4a7f07..c77ed9a8 100644
--- a/targets/ramips-mt76x8
+++ b/targets/ramips-mt76x8
@@ -32,6 +32,13 @@ device('ravpower-rp-wd009', 'ravpower_rp-wd009')
 
 -- TP-Link
 
+device('tp-link-archer-c20-v4', 'tplink_archer-c20-v4', {
+	factory = false,
+	extra_images = {
+		{'-squashfs-tftp-recovery', '-bootloader', '.bin'},
+	},
+})
+
 device('tp-link-archer-c20-v5', 'tplink_archer-c20-v5', {
 	factory = false,
 })
-- 
GitLab