qcacld-3.0: Add gpio irq as wakeup source
On some third party platform, the in-band bus suspend-resume is not supported well, instead add gpio irq as wakeup source to support out-of-band suspend-resume. Change-Id: I7621f04d093013e15719b5c84dc244604be238df CRs-Fixed: 2815754
This commit is contained in:
@@ -869,3 +869,27 @@ ucfg_pmo_get_active_mc_bc_apf_mode(struct wlan_objmgr_psoc *psoc)
|
||||
|
||||
return pmo_psoc_ctx->psoc_cfg.active_mc_bc_apf_mode;
|
||||
}
|
||||
|
||||
#ifdef WLAN_ENABLE_GPIO_WAKEUP
|
||||
bool ucfg_pmo_is_gpio_wakeup_enabled(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
struct pmo_psoc_priv_obj *pmo_psoc_ctx = pmo_psoc_get_priv(psoc);
|
||||
|
||||
return pmo_psoc_ctx->psoc_cfg.enable_gpio_wakeup;
|
||||
}
|
||||
|
||||
uint32_t ucfg_pmo_get_gpio_wakeup_pin(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
struct pmo_psoc_priv_obj *pmo_psoc_ctx = pmo_psoc_get_priv(psoc);
|
||||
|
||||
return pmo_psoc_ctx->psoc_cfg.gpio_wakeup_pin;
|
||||
}
|
||||
|
||||
enum pmo_gpio_wakeup_mode
|
||||
ucfg_pmo_get_gpio_wakeup_mode(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
struct pmo_psoc_priv_obj *pmo_psoc_ctx = pmo_psoc_get_priv(psoc);
|
||||
|
||||
return pmo_psoc_ctx->psoc_cfg.gpio_wakeup_mode;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user