diff options
| author | Chun Zhang <chunz@codeaurora.org> | 2016-03-16 17:24:17 -0700 |
|---|---|---|
| committer | Kyle Yan <kyan@codeaurora.org> | 2016-07-11 18:56:22 -0700 |
| commit | 9eb8b67fe9eef65412d630e0ab3d90300a601450 (patch) | |
| tree | 4f38f960859bd0481dee5e0f920b939db10d5cc4 /include | |
| parent | 8a547c50fe278a12d776e4737e9776c8a1d2df18 (diff) | |
leds: qpnp-flash-v2: add support for strobe configuration
Flash LED module supports various kinds of strobe support. Strobe
type can be hardware or software, active high or low, and level or
edge trigger. Add support for configuring strobe type through
device tree properties.
CRs-Fixed: 1024187
Change-Id: Ief6a610c82b7f645966c596f543a1d30f7a40dcc
Signed-off-by: Chun Zhang <chunz@codeaurora.org>
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/leds-qpnp-flash-v2.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/leds-qpnp-flash-v2.h b/include/linux/leds-qpnp-flash-v2.h index ae36a163ed21..c1e841689b55 100644 --- a/include/linux/leds-qpnp-flash-v2.h +++ b/include/linux/leds-qpnp-flash-v2.h @@ -25,6 +25,9 @@ struct flash_node_data { struct pinctrl *pinctrl; struct pinctrl_state *gpio_state_active; struct pinctrl_state *gpio_state_suspend; + struct pinctrl_state *hw_strobe_state_active; + struct pinctrl_state *hw_strobe_state_suspend; + int hw_strobe_gpio; int ires_ua; int max_current; int current_ma; @@ -34,6 +37,7 @@ struct flash_node_data { u8 ires; u8 hdrm_val; u8 current_reg_val; + u8 trigger; bool led_on; }; |
