diff options
author | Raja Mani <rmani@qti.qualcomm.com> | 2016-01-27 12:54:27 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2016-01-28 11:47:21 +0300 |
commit | 7f8e79cdc2534559e3e38f5aee0b9f78e57e8fb3 (patch) | |
tree | e146793e78c152715be29b2d1f6c0f3780a4a195 /drivers/net/wireless/ath/ath10k/ahb.h | |
parent | 37a219a556b01b3236156ecf58717c1e41b552d9 (diff) | |
download | linux-7f8e79cdc2534559e3e38f5aee0b9f78e57e8fb3.tar.xz |
ath10k: add helper functions in ahb.c for reg rd/wr
qca4019 deals with below register memory region to control the clock,
reset, etc.
- Memory to control wifi core
- gcc (outside of wifi)
- tcsr (outside of wifi)
Add new helper functions to perform read/write in above registers
spaces. Actual ioremap for above registers are done in later patch.
Struct ath10k_ahb is introduced to maintain ahb specific info and
memory this struct will be allocated in the continuation of struct
ath10k_pci (again, memory ath10k_ahb is allocated in the later patch).
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.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/ahb.h b/drivers/net/wireless/ath/ath10k/ahb.h index d1afe93f9329..77d15af59c4a 100644 --- a/drivers/net/wireless/ath/ath10k/ahb.h +++ b/drivers/net/wireless/ath/ath10k/ahb.h @@ -20,6 +20,13 @@ #include <linux/platform_device.h> +struct ath10k_ahb { + struct platform_device *pdev; + void __iomem *mem; + void __iomem *gcc_mem; + void __iomem *tcsr_mem; +}; + #ifdef CONFIG_ATH10K_AHB int ath10k_ahb_init(void); |