ath10k: enable SRRI/DRRI support on ddr for WCN3990
authorGovind Singh <govinds@codeaurora.org>
Tue, 17 Apr 2018 12:07:00 +0000 (17:37 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 24 Apr 2018 06:04:21 +0000 (09:04 +0300)
commit4945af5b264fbdbdb5a9021b8a6a179d0c7a33b2
tree775525f627d50a6d18209c3e9c243964713ff7a3
parentb7ba83f7c414e583fdf82a1b1b95d2376cdb4b45
ath10k: enable SRRI/DRRI support on ddr for WCN3990

SRRI/DRRI are not mapped in the HW Shadow block and can lead
to un-clocked access if common subsystem in the target is
powered down due to idle mode.

To mitigate this problem SRRI/DRRI can be read from
DDR instead of doing an actual hardware read.
Host allocates non cached memory on ddr and configures
the physical address of this memory to the CE hardware.
The hardware updates the RRI on this particular location.
Read SRRI/DRRI from DDR location instead of
direct target read.

Enable retention restore on ddr using hw params to enable
in specific targets.

Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/ce.c
drivers/net/wireless/ath/ath10k/ce.h
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/hw.c
drivers/net/wireless/ath/ath10k/hw.h
drivers/net/wireless/ath/ath10k/snoc.c