From 6bd132f637521221e76d8074eb8b331dfee825f9 Mon Sep 17 00:00:00 2001 From: Praveenkumar I Date: Thu, 17 Feb 2022 09:28:47 +0530 Subject: [PATCH] ipq9574: Add support for AP-AL02-C6 Change-Id: I6a3ed2372713253d997db576ae35ab0a8b0e2a8b Signed-off-by: Praveenkumar I --- arch/arm/include/asm/mach-types.h | 2 ++ board/qca/arm/ipq9574/ipq9574.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/arch/arm/include/asm/mach-types.h b/arch/arm/include/asm/mach-types.h index 9cb808d2b5..3adfe75c86 100644 --- a/arch/arm/include/asm/mach-types.h +++ b/arch/arm/include/asm/mach-types.h @@ -1158,8 +1158,10 @@ extern unsigned int __machine_arch_type; #define MACH_TYPE_IPQ807x_AP_HK12_C1 0x8010013 #define MACH_TYPE_IPQ807x_AP_HK10_C2 0x801010E #define MACH_TYPE_IPQ9574_EMULATION 0xF050000 +#define MACH_TYPE_IPQ9574_AP_AL02_C1 0x8050001 #define MACH_TYPE_IPQ9574_AP_AL02_C4 0x8050301 #define MACH_TYPE_IPQ9574_AP_AL02_C5 0x8050401 +#define MACH_TYPE_IPQ9574_AP_AL02_C6 0x8050501 #ifdef CONFIG_ARCH_EBSA110 # ifdef machine_arch_type diff --git a/board/qca/arm/ipq9574/ipq9574.c b/board/qca/arm/ipq9574/ipq9574.c index 3448bbd332..7ff7e16ddd 100644 --- a/board/qca/arm/ipq9574/ipq9574.c +++ b/board/qca/arm/ipq9574/ipq9574.c @@ -1484,6 +1484,8 @@ unsigned int get_dts_machid(unsigned int machid) return MACH_TYPE_IPQ9574_EMULATION; case MACH_TYPE_IPQ9574_AP_AL02_C5: return MACH_TYPE_IPQ9574_AP_AL02_C4; + case MACH_TYPE_IPQ9574_AP_AL02_C6: + return MACH_TYPE_IPQ9574_AP_AL02_C1; default: return machid; } @@ -1502,6 +1504,9 @@ void ipq_uboot_fdt_fixup(void) case MACH_TYPE_IPQ9574_AP_AL02_C5: config = "config@al02-c5"; break; + case MACH_TYPE_IPQ9574_AP_AL02_C6: + config = "config@al02-c6"; + break; } if (config != NULL)