[OpenWrt-Devel] [PATCH] ar71xx:Add QCA953X version2 SoC support

Chuanhong Guo gch981213 at gmail.com
Sun Feb 1 07:48:00 EST 2015


From: 郭传鈜 <gch981213 at gmail.com>

This patch adds support for QCA953Xv2 SoC.
I got this patch from QSDK here: https://www.codeaurora.org/cgit/quic/qsdk/oss/system/openwrt/tree/target/linux/ar71xx/patches-3.3/627-QCA-MIPS-ath79-add-QCA9531-version2-support.patch?h=release/banana_10.4_c1
This patch is tested on QCA9533-BL3A and everything seems to be OK.
Signed-off-by: 郭传鈜 <gch981213 at gmail.com>
---
 ...6-MIPS-ath79-add-QCA953X-version2-support.patch | 41 ++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 target/linux/ar71xx/patches-3.14/736-MIPS-ath79-add-QCA953X-version2-support.patch

diff --git a/target/linux/ar71xx/patches-3.14/736-MIPS-ath79-add-QCA953X-version2-support.patch b/target/linux/ar71xx/patches-3.14/736-MIPS-ath79-add-QCA953X-version2-support.patch
new file mode 100644
index 0000000..0dbd737
--- /dev/null
+++ b/target/linux/ar71xx/patches-3.14/736-MIPS-ath79-add-QCA953X-version2-support.patch
@@ -0,0 +1,41 @@
+--- a/arch/mips/ath79/early_printk.c
++++ b/arch/mips/ath79/early_printk.c
+@@ -114,7 +114,8 @@
+ 	case REV_ID_MAJOR_AR9341:
+ 	case REV_ID_MAJOR_AR9342:
+ 	case REV_ID_MAJOR_AR9344:
+-	case REV_ID_MAJOR_QCA9533:
++	case REV_ID_MAJOR_QCA9533_V1:
++	case REV_ID_MAJOR_QCA9533_V2:
+ 	case REV_ID_MAJOR_QCA9556:
+ 	case REV_ID_MAJOR_QCA9558:
+ 	case REV_ID_MAJOR_TP9343:
+--- a/arch/mips/ath79/setup.c
++++ b/arch/mips/ath79/setup.c
+@@ -152,10 +152,13 @@
+ 		rev = id & AR934X_REV_ID_REVISION_MASK;
+ 		break;
+ 
+-	case REV_ID_MAJOR_QCA9533:
++	case REV_ID_MAJOR_QCA9533_V1:
++	case REV_ID_MAJOR_QCA9533_V2:
+ 		ath79_soc = ATH79_SOC_QCA9533;
+ 		chip = "9533";
+ 		rev = id & QCA953X_REV_ID_REVISION_MASK;
++		if (major == REV_ID_MAJOR_QCA9533_V2)
++			rev = 2;
+ 		break;
+ 
+ 	case REV_ID_MAJOR_QCA9556:
+--- a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
++++ b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
+@@ -709,7 +709,8 @@
+ #define REV_ID_MAJOR_AR9341		0x0120
+ #define REV_ID_MAJOR_AR9342		0x1120
+ #define REV_ID_MAJOR_AR9344		0x2120
+-#define REV_ID_MAJOR_QCA9533		0x0140
++#define REV_ID_MAJOR_QCA9533_V1	0x0140
++#define REV_ID_MAJOR_QCA9533_V2	0x0160
+ #define REV_ID_MAJOR_QCA9556		0x0130
+ #define REV_ID_MAJOR_QCA9558		0x1130
+ #define REV_ID_MAJOR_TP9343		0x0150
-- 
2.1.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list