|
@@ -318,6 +318,16 @@ static inline u32 ath10k_pci_read32(struct ath10k *ar, u32 offset)
|
|
|
return ioread32(ar_pci->mem + offset);
|
|
|
}
|
|
|
|
|
|
+static inline u32 ath10k_pci_soc_read32(struct ath10k *ar, u32 addr)
|
|
|
+{
|
|
|
+ return ath10k_pci_read32(ar, RTC_SOC_BASE_ADDRESS + addr);
|
|
|
+}
|
|
|
+
|
|
|
+static inline void ath10k_pci_soc_write32(struct ath10k *ar, u32 addr, u32 val)
|
|
|
+{
|
|
|
+ ath10k_pci_write32(ar, RTC_SOC_BASE_ADDRESS + addr, val);
|
|
|
+}
|
|
|
+
|
|
|
int ath10k_do_pci_wake(struct ath10k *ar);
|
|
|
void ath10k_do_pci_sleep(struct ath10k *ar);
|
|
|
|