From 9b3a6cb1d6f2c69e3dab0e89dba842a76f463f74 Mon Sep 17 00:00:00 2001 From: Bengt Jonsson Date: Wed, 16 Nov 2011 17:12:14 +0100 Subject: 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 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/37700 Reviewed-by: Mattias NILSSON Reviewed-by: QABUILD Reviewed-by: Jonas ABERG --- include/linux/regulator/ab8500.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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, -- cgit v1.2.3