diff options
| author | Sarada Prasanna Garnayak <sgarna@codeaurora.org> | 2017-06-21 20:43:31 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-08-02 05:11:40 -0700 |
| commit | cca1739db38ce7c40d518255404c86b6046f5a03 (patch) | |
| tree | 1302563f7ad7179b3640e531dd0889d05aa367c5 /include/linux | |
| parent | 6d11c13b4311665ad0b438bf82908577d6d1a32f (diff) | |
wcnss: Update the wcnss wlan module power up sequence
The wcnss wlan module power up sequence has been changed.
To add support for the wcnss new power up sequence configured
3.3v external GPIO in wcnss platform driver.
Add check for the target to support the 3.3v external gpio for
the wcnss power up and routine to control the gpio like gpio
init, enable, disable for the device power management in different
state of the wcnss wlan device.
CRs-Fixed: 2065396
Change-Id: Ie6b79415b670522aa0abee58a23a31cffec76f5a
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/wcnss_wlan.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/wcnss_wlan.h b/include/linux/wcnss_wlan.h index 78ae70a92753..dbde018af4c6 100644 --- a/include/linux/wcnss_wlan.h +++ b/include/linux/wcnss_wlan.h @@ -20,6 +20,11 @@ #define IRIS_REGULATORS 4 #define PRONTO_REGULATORS 3 +#define WCNSS_EXTERNAL_GPIO_NAME "qcom,wcn-external-gpio" +#define WCNSS_EXTERNAL_GPIO_HIGH 1 +#define WCNSS_EXTERNAL_GPIO_LOW 0 +#define WCNSS_EXTERNAL_GPIO_DIR_OUT 1 + enum wcnss_opcode { WCNSS_WLAN_SWITCH_OFF = 0, WCNSS_WLAN_SWITCH_ON, @@ -38,6 +43,8 @@ struct vregs_level { }; struct wcnss_wlan_config { + bool wcn_external_gpio_support; + int wcn_external_gpio; int use_48mhz_xo; int is_pronto_vadc; int is_pronto_v3; |
