summaryrefslogtreecommitdiff
path: root/include/linux/mfd/as3722.h
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2018-07-03 18:04:11 +0300
committerLee Jones <lee.jones@linaro.org>2018-07-27 10:16:01 +0300
commitc8fda5bfa9972dc1175b898dfdaa3a375dca6022 (patch)
tree886e77bfaf2c6f578d564042f95f560c2cb26305 /include/linux/mfd/as3722.h
parent99e19b7c48f852acd8341de4390931a9da699ee3 (diff)
downloadlinux-c8fda5bfa9972dc1175b898dfdaa3a375dca6022.tar.xz
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/as3722.h')
-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 @@
#define AS3722_ADC1_CONV_NOTREADY BIT(7)
#define AS3722_ADC1_SOURCE_SELECT_MASK 0x1F
+#define AS3722_CTRL_SEQU1_AC_OK_PWR_ON BIT(0)
+
/* GPIO modes */
#define AS3722_GPIO_MODE_MASK 0x07
#define AS3722_GPIO_MODE_INPUT 0x00
@@ -391,6 +393,7 @@ struct as3722 {
unsigned long irq_flags;
bool en_intern_int_pullup;
bool en_intern_i2c_pullup;
+ bool en_ac_ok_pwr_on;
struct regmap_irq_chip_data *irq_data;
};