summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2014-06-03 12:32:11 +0530
committerTony Ly <tly@nvidia.com>2014-06-05 11:59:12 -0700
commit92ff6eb49b90fc33fd5072025d8a9263b0eb4ca6 (patch)
tree2ef7a8f2650c0affd50d3885632419d427e25a82 /include/linux
parent7b984f4acadbd156a8925120b580e92a6b55e1ac (diff)
regulator: core: add support for disabling parent after enabling rail.
Add support on core driver of regulator to disable parent once the regulator enable. This is needed for some specific purpose to handle overcurrent on parent rail due to enabling the rail. bug 1494740 Change-Id: I95084243975ca5298abbaa23a31007413bdca7a9 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/418143 (cherry picked from commit a65d4377c02067d8b6105c7fcd1931e20d9e8995) Reviewed-on: http://git-master/r/419335 Tested-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/regulator/machine.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/regulator/machine.h b/include/linux/regulator/machine.h
index c94cb5fdb18d..d1a6e677a5e9 100644
--- a/include/linux/regulator/machine.h
+++ b/include/linux/regulator/machine.h
@@ -152,6 +152,7 @@ struct regulation_constraints {
unsigned apply_uV:1; /* apply uV constraint if min == max */
unsigned boot_off:1; /* bootloader/firmware disabled regulator */
unsigned int ignore_current_constraint_init:1;
+ unsigned disable_parent_after_enable:1; /* SW based overcurrent protection */
};
/**