diff options
author | Jon Hunter <jonathanh@nvidia.com> | 2016-04-07 16:22:38 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-04-11 15:15:36 +0100 |
commit | 40a865500c4d408b552cf5899bf091ac72e32bf8 (patch) | |
tree | 2934b1dd12fe520a820ac779056ce2232057c36a /include/linux/mfd/as3722.h | |
parent | f55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff) | |
download | op-kernel-dev-40a865500c4d408b552cf5899bf091ac72e32bf8.zip op-kernel-dev-40a865500c4d408b552cf5899bf091ac72e32bf8.tar.gz |
regulator: as3722: Add bypass support for LDO6
LD06 on the AS3722 power management IC supports a bypass mode. Bypass
is enabled for the LDO by writing the value 0x3F to the voltage select
field in the control register for the LDO. Note that this is the same
register and field that is used to select the voltage as well for the
LDO.
Add support for bypass on LDO6 by specifying the various bypass
parameters for regulator and adding new function pointer tables for the
LDO. Note that the bypass OFF value is the same as the ON value simply
because there is no actual OFF value and bypass will be disabled when
a new voltage is written to the VSEL field.
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/mfd/as3722.h')
-rw-r--r-- | include/linux/mfd/as3722.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/as3722.h b/include/linux/mfd/as3722.h index 8d43e9f..51e6f94 100644 --- a/include/linux/mfd/as3722.h +++ b/include/linux/mfd/as3722.h @@ -196,6 +196,7 @@ #define AS3722_LDO3_VSEL_MIN 0x01 #define AS3722_LDO3_VSEL_MAX 0x2D #define AS3722_LDO3_NUM_VOLT 0x2D +#define AS3722_LDO6_VSEL_BYPASS 0x3F #define AS3722_LDO_VSEL_MASK 0x7F #define AS3722_LDO_VSEL_MIN 0x01 #define AS3722_LDO_VSEL_MAX 0x7F |