summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath10k/ahb.h
diff options
context:
space:
mode:
authorRaja Mani <rmani@qti.qualcomm.com>2016-01-27 15:24:33 +0530
committerKalle Valo <kvalo@qca.qualcomm.com>2016-01-28 10:47:28 +0200
commit0d87c9208a17cb82fed66e29180078ab603086ea (patch)
tree0d61d43e823267bde53af69f0c3fd250b6ac8d3b /drivers/net/wireless/ath/ath10k/ahb.h
parent704dc4e36769218145d30c41e81a5fbfed3977c7 (diff)
ath10k: expose hif ops for ahb
Like how pci.c exposes hif ops for the bus specific operation, expose similar hif ops table for ahb with all required functions linked to it. Many ath10k_pci_* functions are reused here in hif ops table. If something is not sharable, new functions are added for ahb and linked to hif ops table. Finally, make ath10k_ahb_probe/remove() to perform what is expected out of it. Signed-off-by: Raja Mani <rmani@qti.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/ahb.h')
-rw-r--r--drivers/net/wireless/ath/ath10k/ahb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/ahb.h b/drivers/net/wireless/ath/ath10k/ahb.h
index 5bd01b49132b..d43e375215c8 100644
--- a/drivers/net/wireless/ath/ath10k/ahb.h
+++ b/drivers/net/wireless/ath/ath10k/ahb.h
@@ -48,6 +48,9 @@ struct ath10k_ahb {
#define ATH10K_TCSR_REG_BASE 0x1900000
#define ATH10K_TCSR_REG_SIZE 0x80000
+#define ATH10K_AHB_GCC_FEPLL_PLL_DIV 0x2f020
+#define ATH10K_AHB_WIFI_SCRATCH_5_REG 0x4f014
+
#define ATH10K_AHB_WLAN_CORE_ID_REG 0x82030
#define ATH10K_AHB_TCSR_WIFI0_GLB_CFG 0x49000
@@ -63,6 +66,8 @@ struct ath10k_ahb {
#define AHB_AXI_BUS_HALT_REQ 1
#define AHB_AXI_BUS_HALT_ACK 1
+#define ATH10K_AHB_CORE_CTRL_CPU_INTR_MASK 1
+
int ath10k_ahb_init(void);
void ath10k_ahb_exit(void);