diff options
author | Bengt Jonsson <bengt.g.jonsson@stericsson.com> | 2011-11-16 17:12:14 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 10:59:18 +0200 |
commit | 9b3a6cb1d6f2c69e3dab0e89dba842a76f463f74 (patch) | |
tree | b2b5dab66bdcca0f2e7e6a3c52979465ba17b7e9 /include | |
parent | ccf2d594242c7d4dff89f977db81222d2d72a5a2 (diff) |
regulator: ab8500-ext: Add HW request support
Support for HW request is added in the external regulator
driver. A flag in the board configuration can be set to
let HW control the regulator when there is no SW request.
This means that the regulator will be put in high power
mode when there is a SW request and in HW-request mode
otherwise.
ST-Ericsson Linux next: -
ST-Ericsson ID: 374223
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I46965b70449e2b2cf91a67b299db402c63357865
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/37700
Reviewed-by: Mattias NILSSON <mattias.i.nilsson@stericsson.com>
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/regulator/ab8500.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/regulator/ab8500.h b/include/linux/regulator/ab8500.h index e6c416622ee..6f82ab3c444 100644 --- a/include/linux/regulator/ab8500.h +++ b/include/linux/regulator/ab8500.h @@ -157,6 +157,10 @@ enum ab9540_regulator_reg { }; /* AB8500 external regulators */ +struct ab8500_ext_regulator_cfg { + bool hwreq; /* requires hw mode or high power mode */ +}; + enum ab8500_ext_regulator_id { AB8500_EXT_SUPPLY3, AB8500_NUM_EXT_REGULATORS, |