summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2018-07-03 11:04:11 -0400
committerLee Jones <lee.jones@linaro.org>2018-07-27 03:16:01 -0400
commitc8fda5bfa9972dc1175b898dfdaa3a375dca6022 (patch)
tree886e77bfaf2c6f578d564042f95f560c2cb26305 /include/linux/mfd
parent99e19b7c48f852acd8341de4390931a9da699ee3 (diff)
mfd: as3722: Disable auto-power-on when AC OK
On ams AS3722, power on when AC OK is enabled by default. Making this option as disable by default and enable only when platform need this explicitly. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Tested-by: Bibek Basu <bbasu@nvidia.com> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/as3722.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/as3722.h b/include/linux/mfd/as3722.h
index 51e6f9414575..b404a5af9bba 100644
--- a/include/linux/mfd/as3722.h
+++ b/include/linux/mfd/as3722.h
@@ -296,6 +296,8 @@
296#define AS3722_ADC1_CONV_NOTREADY BIT(7) 296#define AS3722_ADC1_CONV_NOTREADY BIT(7)
297#define AS3722_ADC1_SOURCE_SELECT_MASK 0x1F 297#define AS3722_ADC1_SOURCE_SELECT_MASK 0x1F
298 298
299#define AS3722_CTRL_SEQU1_AC_OK_PWR_ON BIT(0)
300
299/* GPIO modes */ 301/* GPIO modes */
300#define AS3722_GPIO_MODE_MASK 0x07 302#define AS3722_GPIO_MODE_MASK 0x07
301#define AS3722_GPIO_MODE_INPUT 0x00 303#define AS3722_GPIO_MODE_INPUT 0x00
@@ -391,6 +393,7 @@ struct as3722 {
391 unsigned long irq_flags; 393 unsigned long irq_flags;
392 bool en_intern_int_pullup; 394 bool en_intern_int_pullup;
393 bool en_intern_i2c_pullup; 395 bool en_intern_i2c_pullup;
396 bool en_ac_ok_pwr_on;
394 struct regmap_irq_chip_data *irq_data; 397 struct regmap_irq_chip_data *irq_data;
395}; 398};
396 399