diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2011-01-31 14:30:25 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-04-26 15:50:46 -0700 |
commit | 3e0bd2747c93d31fecfbdca2e1cc4ee835b87646 (patch) | |
tree | f72d916a41cc977921ff1fb5967ba8e06ac3249d /include/linux | |
parent | 388df647c06557828e4ee1db47afc160f7764bce (diff) |
arm: regulator: gpio_switch: enable/disable of rail through board apis
Supporting the enabling/disabling of rail through board supplied
function. This is require if rail control is done through special
sequence.
Original-Change-Id: Iec7de658fe427a2098705a5363733887f87f6c1d
Reviewed-on: http://git-master/r/17658
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com>
Change-Id: Ibe3d6e9e15e92a9ac5f381ac26666fb4f69635db
Diffstat (limited to 'include/linux')
-rwxr-xr-x | include/linux/gpio-switch-regulator.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/gpio-switch-regulator.h b/include/linux/gpio-switch-regulator.h index 00aa2948844a..2b02e4bfd5b4 100755 --- a/include/linux/gpio-switch-regulator.h +++ b/include/linux/gpio-switch-regulator.h @@ -44,11 +44,15 @@ struct gpio_switch_regulator_platform_data { int id; int gpio_nr; int active_low; + int pin_group; int init_state; int *voltages; unsigned n_voltages; struct regulator_consumer_supply *consumer_supplies; int num_consumer_supplies; struct regulation_constraints constraints; + int (*enable_rail)(struct gpio_switch_regulator_platform_data *pdata); + int (*disable_rail)(struct gpio_switch_regulator_platform_data *pdata); + }; #endif |