Skip to content

Commit 7d4c2af

Browse files
juhosgJohn Crispin
authored andcommitted
MIPS: ath79: add QCA955X specific glue to ath79_device_reset_{set, clear}
The ath79_device_reset_* are causing BUG when those are used on the QCA955x SoCs. The patch adds the required code to avoid that. Cc: Rodriguez, Luis <rodrigue@qca.qualcomm.com> Cc: Giori, Kathy <kgiori@qca.qualcomm.com> Cc: QCA Linux Team <qca-linux-team@qca.qualcomm.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/4948/ Signed-off-by: John Crispin <blogic@openwrt.org>
1 parent f818ca3 commit 7d4c2af

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎arch/mips/ath79/common.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ void ath79_device_reset_set(u32 mask)
7272
reg = AR933X_RESET_REG_RESET_MODULE;
7373
else if (soc_is_ar934x())
7474
reg = AR934X_RESET_REG_RESET_MODULE;
75+
else if (soc_is_qca955x())
76+
reg = QCA955X_RESET_REG_RESET_MODULE;
7577
else
7678
BUG();
7779

@@ -98,6 +100,8 @@ void ath79_device_reset_clear(u32 mask)
98100
reg = AR933X_RESET_REG_RESET_MODULE;
99101
else if (soc_is_ar934x())
100102
reg = AR934X_RESET_REG_RESET_MODULE;
103+
else if (soc_is_qca955x())
104+
reg = QCA955X_RESET_REG_RESET_MODULE;
101105
else
102106
BUG();
103107

‎arch/mips/include/asm/mach-ath79/ar71xx_regs.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@
299299
#define AR934X_RESET_REG_BOOTSTRAP 0xb0
300300
#define AR934X_RESET_REG_PCIE_WMAC_INT_STATUS 0xac
301301

302+
#define QCA955X_RESET_REG_RESET_MODULE 0x1c
302303
#define QCA955X_RESET_REG_BOOTSTRAP 0xb0
303304
#define QCA955X_RESET_REG_EXT_INT_STATUS 0xac
304305

0 commit comments

Comments
 (0)