From 5888a50cbaf2730315e87cf46e1b4cfedf2e8433 Mon Sep 17 00:00:00 2001
From: Grische <github@grische.xyz>
Date: Tue, 18 Oct 2022 19:06:22 +0200
Subject: [PATCH] ipq40xx-generic: add AVM FRITZBox 7520 explicitely

AVM Fritz!Box 7520 and Fritz!Box 7530 use the same hardware platform and can
only be distinguished by using the urlader partition or the fritz-tffs tools
and read the ProductID (Fritz_Box_HW247).
---
 docs/user/supported_devices.rst | 1 +
 targets/ipq40xx-generic         | 1 +
 2 files changed, 2 insertions(+)

diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst
index 2f3d1b77..b2450df1 100644
--- a/docs/user/supported_devices.rst
+++ b/docs/user/supported_devices.rst
@@ -180,6 +180,7 @@ ipq40xx-generic
 * AVM
 
   - FRITZ!Box 4040 [#avmflash]_
+  - FRITZ!Box 7520 (v1) [#eva_ramboot]_
   - FRITZ!Box 7530 [#eva_ramboot]_
   - FRITZ!Repeater 1200 [#eva_ramboot]_
 
diff --git a/targets/ipq40xx-generic b/targets/ipq40xx-generic
index ec5d6b70..a7c8f03a 100644
--- a/targets/ipq40xx-generic
+++ b/targets/ipq40xx-generic
@@ -36,6 +36,7 @@ device('avm-fritz-box-4040', 'avm_fritzbox-4040', {
 
 device('avm-fritz-box-7530', 'avm_fritzbox-7530', {
 	factory = false,
+	aliases = {'avm-fritz-box-7520'},
 })
 
 device('avm-fritz-repeater-1200', 'avm_fritzrepeater-1200', {
-- 
GitLab