diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-04-02 08:24:12 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-02 18:01:43 -0400 |
commit | 3fe52289105823867226355e8e957119af50e3a1 (patch) | |
tree | 04b2695466351dde5e2689c156988ee686810029 /arch/arm/mach-ux500 | |
parent | d7607baf32160a64a2610552868d348b6644b5ef (diff) |
regulator: ab8500: Add mode operation for v-amic
v-amic1 and v-amic2 regulators have dedicated mode registers
and share the same mode bit. This patch adds special handling
for those regulators.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'arch/arm/mach-ux500')
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-regulators.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-regulators.c b/arch/arm/mach-ux500/board-mop500-regulators.c index 62b4aa4cbfb3..832966311c29 100644 --- a/arch/arm/mach-ux500/board-mop500-regulators.c +++ b/arch/arm/mach-ux500/board-mop500-regulators.c | |||
@@ -877,7 +877,10 @@ struct regulator_init_data ab8505_regulators[AB8505_NUM_REGULATORS] = { | |||
877 | [AB8505_LDO_ANAMIC1] = { | 877 | [AB8505_LDO_ANAMIC1] = { |
878 | .constraints = { | 878 | .constraints = { |
879 | .name = "V-AMIC1", | 879 | .name = "V-AMIC1", |
880 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 880 | .valid_ops_mask = REGULATOR_CHANGE_STATUS | |
881 | REGULATOR_CHANGE_MODE, | ||
882 | .valid_modes_mask = REGULATOR_MODE_NORMAL | | ||
883 | REGULATOR_MODE_IDLE, | ||
881 | }, | 884 | }, |
882 | .num_consumer_supplies = ARRAY_SIZE(ab8500_vamic1_consumers), | 885 | .num_consumer_supplies = ARRAY_SIZE(ab8500_vamic1_consumers), |
883 | .consumer_supplies = ab8500_vamic1_consumers, | 886 | .consumer_supplies = ab8500_vamic1_consumers, |
@@ -886,7 +889,10 @@ struct regulator_init_data ab8505_regulators[AB8505_NUM_REGULATORS] = { | |||
886 | [AB8505_LDO_ANAMIC2] = { | 889 | [AB8505_LDO_ANAMIC2] = { |
887 | .constraints = { | 890 | .constraints = { |
888 | .name = "V-AMIC2", | 891 | .name = "V-AMIC2", |
889 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 892 | .valid_ops_mask = REGULATOR_CHANGE_STATUS | |
893 | REGULATOR_CHANGE_MODE, | ||
894 | .valid_modes_mask = REGULATOR_MODE_NORMAL | | ||
895 | REGULATOR_MODE_IDLE, | ||
890 | }, | 896 | }, |
891 | .num_consumer_supplies = ARRAY_SIZE(ab8500_vamic2_consumers), | 897 | .num_consumer_supplies = ARRAY_SIZE(ab8500_vamic2_consumers), |
892 | .consumer_supplies = ab8500_vamic2_consumers, | 898 | .consumer_supplies = ab8500_vamic2_consumers, |