ath10k: Add support to read btcoex related data from DT
authorTamizh Chelvam <tamizhr@codeaurora.org>
Mon, 27 Jan 2020 19:18:56 +0000 (00:48 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 11 Feb 2020 14:22:49 +0000 (16:22 +0200)
commit9f83993e1a92ba19fcee635e4aff823a72a18d0c
tree4ace321daa4d8701e6eea0c0bff9142fcbcf8b2c
parent7354de9c6e2c4ada06fbf119221eec4ec9eeb3c3
ath10k: Add support to read btcoex related data from DT

BTCOEX feature is not supported by all QCA4019 chipsets.
Since btcoex enabled by default in firmware, host needs to
enable COEX support depends on the hardware. Enabling it
by default in unsupported hardware will cause some
feature disabled in hardware.
This patch will read btcoex_support flag and
wlan priority gpio pin number from DT. Depends on the
btcoex_support flag value host will expose BTCOEX support
and wlan priority gpio pin number to target.

Testing:
* Tested HW : QCA4019
* Tested FW : 10.4-3.2.1.1-00017

Signed-off-by: Tamizh Chelvam <tamizhr@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/debug.c
drivers/net/wireless/ath/ath10k/mac.c
drivers/net/wireless/ath/ath10k/wmi.c