From 94e04393b19e843cfe595558839ae0aced075127 Mon Sep 17 00:00:00 2001
From: "J. Burfeind" <git@aiyionpri.me>
Date: Tue, 5 Apr 2022 19:29:02 +0200
Subject: [PATCH] ath79-nand: (re)add support for glinet_gl-ar300m (#2455)

Gone due to
commit 45c84a117bf8 ("ar71xx: drop target")

Changed subtarget in between, similar change in
commit bed66fa24856 ("ath79: move GL.iNet GL-AR750S to NAND subtarget")
---
 docs/user/supported_devices.rst | 1 +
 targets/ath79-nand              | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst
index 0512ac2b2..2726fa643 100644
--- a/docs/user/supported_devices.rst
+++ b/docs/user/supported_devices.rst
@@ -105,6 +105,7 @@ ath79-nand
 
 * GL.iNet
 
+  - GL-AR300M
   - GL-AR750S
 
 brcm2708-bcm2708
diff --git a/targets/ath79-nand b/targets/ath79-nand
index 5fe844ea2..97c669152 100644
--- a/targets/ath79-nand
+++ b/targets/ath79-nand
@@ -7,6 +7,10 @@ local ATH10K_PACKAGES_QCA9887 = {
 }
 
 
+device('gl.inet-gl-ar300m-nor', 'glinet_gl-ar300m-nor', {
+	factory = false,
+})
+
 device('gl.inet-gl-ar750s-nor', 'glinet_gl-ar750s-nor', {
 	factory = false,
 	packages = ATH10K_PACKAGES_QCA9887,
-- 
GitLab