qcacmn: Add extra parameters to gpio command

Add extra parameters to gpio wmi command since they
are required for smart antenna config.

Change-Id: I3b363c7b508862ded8aacffb9e0a39328e8b2b94
This commit is contained in:
Nandha Kishore Easwaran
2020-11-02 11:10:04 +05:30
committed by snandini
parent de94037c5f
commit a90712e15d
6 changed files with 171 additions and 16 deletions

View File

@@ -57,12 +57,16 @@ tgt_set_gpio_output_req(struct wlan_objmgr_psoc *psoc,
* @input: enable/disable the gpio pin
* @pull_type: gpio pull type
* @intr_mode: gpio interrupt mode
* @mux_config_val: gpio MUX value
* @drive: gpio drive
* @init_enable: gpio init_enable
*
* Return: status of operation
*/
QDF_STATUS tgt_gpio_config(struct wlan_objmgr_psoc *psoc, uint32_t gpio_num,
uint32_t input, uint32_t pull_type,
uint32_t intr_mode);
uint32_t intr_mode, uint32_t mux_config_val,
uint32_t drive, uint32_t init_enable);
/**
* tgt_if_gpio_output() - API to send gpio output request
* @psoc: pointer to psoc object

View File

@@ -59,7 +59,8 @@ QDF_STATUS tgt_set_gpio_output_req(struct wlan_objmgr_psoc *psoc,
QDF_STATUS tgt_gpio_config(struct wlan_objmgr_psoc *psoc, uint32_t gpio_num,
uint32_t input, uint32_t pull_type,
uint32_t intr_mode)
uint32_t intr_mode, uint32_t mux_config_val,
uint32_t drive, uint32_t init_enable)
{
struct gpio_config_params param;
@@ -73,6 +74,9 @@ QDF_STATUS tgt_gpio_config(struct wlan_objmgr_psoc *psoc, uint32_t gpio_num,
param.pin_num = gpio_num;
param.pin_dir = input;
param.pin_intr_mode = intr_mode;
param.mux_config_val = mux_config_val;
param.drive = drive;
param.init_enable = init_enable;
return tgt_set_gpio_config_req(psoc, &param);
}