Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Gabor Juhos and committed by
John Crispin
7d4c2af9 f818ca3e

+5
+4
arch/mips/ath79/common.c
··· 72 72 reg = AR933X_RESET_REG_RESET_MODULE; 73 73 else if (soc_is_ar934x()) 74 74 reg = AR934X_RESET_REG_RESET_MODULE; 75 + else if (soc_is_qca955x()) 76 + reg = QCA955X_RESET_REG_RESET_MODULE; 75 77 else 76 78 BUG(); 77 79 ··· 100 98 reg = AR933X_RESET_REG_RESET_MODULE; 101 99 else if (soc_is_ar934x()) 102 100 reg = AR934X_RESET_REG_RESET_MODULE; 101 + else if (soc_is_qca955x()) 102 + reg = QCA955X_RESET_REG_RESET_MODULE; 103 103 else 104 104 BUG(); 105 105
+1
arch/mips/include/asm/mach-ath79/ar71xx_regs.h
··· 299 299 #define AR934X_RESET_REG_BOOTSTRAP 0xb0 300 300 #define AR934X_RESET_REG_PCIE_WMAC_INT_STATUS 0xac 301 301 302 + #define QCA955X_RESET_REG_RESET_MODULE 0x1c 302 303 #define QCA955X_RESET_REG_BOOTSTRAP 0xb0 303 304 #define QCA955X_RESET_REG_EXT_INT_STATUS 0xac 304 305