diff options
author | Maya Erez <qca_merez@qca.qualcomm.com> | 2017-12-14 18:53:07 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-01-09 10:03:15 +0200 |
commit | 38e4c25d606920f4120c4f050657fa8ee736c8d7 (patch) | |
tree | f1a9e62efdbd4fd15ce7802b875aca2a4233fb16 /drivers/net/wireless/ath/wil6210/wil_platform.h | |
parent | 3dc2c13b5238cef01f36b9ba72e2d1b01862381c (diff) | |
download | linux-38e4c25d606920f4120c4f050657fa8ee736c8d7.tar.gz linux-38e4c25d606920f4120c4f050657fa8ee736c8d7.tar.bz2 linux-38e4c25d606920f4120c4f050657fa8ee736c8d7.zip |
wil6210: add platform capabilities bitmap
Add get_capa callback to platform ops to allow reading the platform
capabilities.
Supported capabilities:
- Keeping 11ad connection during suspend
- T_POWER_ON 0 support
- Usage of external clock
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/wil_platform.h')
-rw-r--r-- | drivers/net/wireless/ath/wil6210/wil_platform.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/wil6210/wil_platform.h b/drivers/net/wireless/ath/wil6210/wil_platform.h index 5d9e4bfcb045..5cfb946caff7 100644 --- a/drivers/net/wireless/ath/wil6210/wil_platform.h +++ b/drivers/net/wireless/ath/wil6210/wil_platform.h @@ -27,6 +27,13 @@ enum wil_platform_event { WIL_PLATFORM_EVT_POST_SUSPEND = 4, }; +enum wil_platform_capa { + WIL_PLATFORM_CAPA_RADIO_ON_IN_SUSPEND = 0, + WIL_PLATFORM_CAPA_T_PWR_ON_0 = 1, + WIL_PLATFORM_CAPA_EXT_CLK = 2, + WIL_PLATFORM_CAPA_MAX, +}; + /** * struct wil_platform_ops - wil platform module calls from this * driver to platform driver @@ -37,7 +44,7 @@ struct wil_platform_ops { int (*resume)(void *handle, bool device_powered_on); void (*uninit)(void *handle); int (*notify)(void *handle, enum wil_platform_event evt); - bool (*keep_radio_on_during_sleep)(void *handle); + int (*get_capa)(void *handle); }; /** |