* [PATCH] MIPS: ath79: add support for QCN550x
@ 2022-01-24 7:13 Wenli Looi
2022-02-07 17:35 ` Thomas Bogendoerfer
0 siblings, 1 reply; 2+ messages in thread
From: Wenli Looi @ 2022-01-24 7:13 UTC (permalink / raw)
To: Thomas Bogendoerfer, linux-mips; +Cc: Wenli Looi
Adds support for QCN550x, which appears to be very similar to QCA956x.
Signed-off-by: Wenli Looi <wlooi@ucalgary.ca>
---
Notes:
- OpenWrt pull request: https://github.com/openwrt/openwrt/pull/4271
(contains boot log with stock firmware and with this patch)
- QSDK source: https://source.codeaurora.org/quic/qsdk/oss/system/openwrt/tree/target/linux/ar71xx/patches-3.3/9991-MIPS-ath79-add-SoC-detection-code-for-QCN550X.patch?h=aa/banana
- QSDK clock init appears identical to QCA956x.
- Only tested on QCN5502, not sure if it works for QCN5500.
arch/mips/ath79/early_printk.c | 1 +
arch/mips/ath79/setup.c | 6 ++++++
arch/mips/include/asm/mach-ath79/ar71xx_regs.h | 1 +
3 files changed, 8 insertions(+)
diff --git a/arch/mips/ath79/early_printk.c b/arch/mips/ath79/early_printk.c
index 782732cd1..8751d067f 100644
--- a/arch/mips/ath79/early_printk.c
+++ b/arch/mips/ath79/early_printk.c
@@ -121,6 +121,7 @@ static void prom_putchar_init(void)
case REV_ID_MAJOR_QCA9558:
case REV_ID_MAJOR_TP9343:
case REV_ID_MAJOR_QCA956X:
+ case REV_ID_MAJOR_QCN550X:
_prom_putchar = prom_putchar_ar71xx;
break;
diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c
index 891f495c4..24aa13b4f 100644
--- a/arch/mips/ath79/setup.c
+++ b/arch/mips/ath79/setup.c
@@ -177,6 +177,12 @@ static void __init ath79_detect_sys_type(void)
rev = id & QCA956X_REV_ID_REVISION_MASK;
break;
+ case REV_ID_MAJOR_QCN550X:
+ ath79_soc = ATH79_SOC_QCA956X;
+ chip = "550X";
+ rev = id & QCA956X_REV_ID_REVISION_MASK;
+ break;
+
case REV_ID_MAJOR_TP9343:
ath79_soc = ATH79_SOC_TP9343;
chip = "9343";
diff --git a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
index 1f9e571af..5f8370607 100644
--- a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
+++ b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
@@ -862,6 +862,7 @@
#define REV_ID_MAJOR_QCA9558 0x1130
#define REV_ID_MAJOR_TP9343 0x0150
#define REV_ID_MAJOR_QCA956X 0x1150
+#define REV_ID_MAJOR_QCN550X 0x2170
#define AR71XX_REV_ID_MINOR_MASK 0x3
#define AR71XX_REV_ID_MINOR_AR7130 0x0
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] MIPS: ath79: add support for QCN550x
2022-01-24 7:13 [PATCH] MIPS: ath79: add support for QCN550x Wenli Looi
@ 2022-02-07 17:35 ` Thomas Bogendoerfer
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Bogendoerfer @ 2022-02-07 17:35 UTC (permalink / raw)
To: Wenli Looi; +Cc: linux-mips
On Sun, Jan 23, 2022 at 11:13:31PM -0800, Wenli Looi wrote:
> Adds support for QCN550x, which appears to be very similar to QCA956x.
>
> Signed-off-by: Wenli Looi <wlooi@ucalgary.ca>
> ---
>
> Notes:
> - OpenWrt pull request: https://github.com/openwrt/openwrt/pull/4271
> (contains boot log with stock firmware and with this patch)
> - QSDK source: https://source.codeaurora.org/quic/qsdk/oss/system/openwrt/tree/target/linux/ar71xx/patches-3.3/9991-MIPS-ath79-add-SoC-detection-code-for-QCN550X.patch?h=aa/banana
> - QSDK clock init appears identical to QCA956x.
> - Only tested on QCN5502, not sure if it works for QCN5500.
>
> arch/mips/ath79/early_printk.c | 1 +
> arch/mips/ath79/setup.c | 6 ++++++
> arch/mips/include/asm/mach-ath79/ar71xx_regs.h | 1 +
> 3 files changed, 8 insertions(+)
applied to mips-next.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-07 17:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-24 7:13 [PATCH] MIPS: ath79: add support for QCN550x Wenli Looi
2022-02-07 17:35 ` Thomas Bogendoerfer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).