* Several WLAN module resets as in Atheros (Q)SDK
*/
wlan_rst_init:
- li t8, QCA_RST_RST_REG
+ li t8, QCA_RST_RESET_REG
/* 2x WLAN resets */
lw t9, 0(t8)
nop
wlan_rst:
- li t8, QCA_RST_RST_REG
+ li t8, QCA_RST_RESET_REG
lw t9, 0(t8)
or t9, t9, QCA_RST_RESET_WLAN_RST_MASK
* TODO: do we need to reset RTC at all?
*/
rtc_reset:
- li t8, QCA_RST_RST_REG
+ li t8, QCA_RST_RESET_REG
lw t9, 0(t8)
or t9, t9, QCA_RST_RESET_RTC_RST_MASK
sw t9, 0(t8)
/*
* Qualcomm/Atheros WiSoCs common/helper functions
*
- * Copyright (C) 2015 Piotr Dymacz <piotr@dymacz.pl>
+ * Copyright (C) 2016 Piotr Dymacz <piotr@dymacz.pl>
*
* SPDX-License-Identifier: GPL-2.0
*/
volatile u32 i = 1;
do {
- qca_soc_reg_write(QCA_RST_RST_REG,
+ qca_soc_reg_write(QCA_RST_RESET_REG,
QCA_RST_RESET_FULL_CHIP_RST_MASK
| QCA_RST_RESET_DDR_RST_MASK);
} while (i);
nop
full_reset:
- li t8, QCA_RST_RST_REG
+ li t8, QCA_RST_RESET_REG
lw t9, 0(t8)
or t9, t9, QCA_RST_RESET_FULL_CHIP_RST_MASK
sw t9, 0(t8)
#define QCA_RST_MISC_INTERRUPT_STATUS_REG QCA_RST_BASE_REG + 0x10
#define QCA_RST_MISC_INTERRUPT_MASK_REG QCA_RST_BASE_REG + 0x14
#define QCA_RST_GLOBALINTERRUPT_STATUS_REG QCA_RST_BASE_REG + 0x18
-#define QCA_RST_RST_REG QCA_RST_BASE_REG + 0x1C
+#define QCA_RST_RESET_REG QCA_RST_BASE_REG + 0x1C
#define QCA_RST_REVISION_ID_REG QCA_RST_BASE_REG + 0x90
#define QCA_RST_GENERAL_TIMER2_REG QCA_RST_BASE_REG + 0x94
#define QCA_RST_GENERAL_TIMER2_RELOAD_REG QCA_RST_BASE_REG + 0x98