qcacld-3.0: Add support for gpio based strobe to capture tsf

Add configuration for gpio pin used to send strobe to wlan hw.

The host driver will latch the current time and toggle the gpio
to generate a strobe to wlan hw.

The tsf will be latched on detecting the strobe and it will be
made available in a register for sw access.
The wlan fw will read this tsf and report it to driver using tsf event.

Change-Id: I4365d97d22836ddbbd2bf9913d4f723e5a870369
CRs-Fixed: 2495152
This commit is contained in:
Subrat Dash
2019-07-22 14:09:34 +05:30
committed by nshrivas
parent bcb1a96d5a
commit b1e61b2083
11 changed files with 351 additions and 55 deletions

View File

@@ -31,11 +31,12 @@ ifeq ($(CONFIG_DEBUG_FS), y)
endif
ifeq ($(CONFIG_NETWORK_PHY_TIMESTAMPING), y)
CONFIG_WLAN_SYNC_TSF_PLUS := y
CONFIG_WLAN_SYNC_TSF_PTP := y
CONFIG_WLAN_SYNC_TSF_PLUS_EXT_GPIO_IRQ := y
endif
CONFIG_WLAN_SYNC_TSF_PLUS := y
CONFIG_WLAN_SYNC_TSF_PLUS_EXT_GPIO_SYNC := y
# Features gets enabled on slub debug
CONFIG_WLAN_DEBUG_CRASH_INJECT := y
CONFIG_FEATURE_MEMDUMP_ENABLE := y