Skip to content

Commit

Permalink
regulator: pfuze100: Support SWB enable/disable
Browse files Browse the repository at this point in the history
The SWB regulators have the ability to be turned on and off.  Add
enable/disable support for these regulators.

Signed-off-by: Sean Cross <xobs@kosagi.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Sean Cross authored and Mark Brown committed May 26, 2014
1 parent c9eaa44 commit a6dcf97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/regulator/pfuze100-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ static struct regulator_ops pfuze100_sw_regulator_ops = {
};

static struct regulator_ops pfuze100_swb_regulator_ops = {
.enable = regulator_enable_regmap,
.disable = regulator_disable_regmap,
.list_voltage = regulator_list_voltage_table,
.map_voltage = regulator_map_voltage_ascend,
.set_voltage_sel = regulator_set_voltage_sel_regmap,
Expand Down Expand Up @@ -189,6 +191,8 @@ static struct regulator_ops pfuze100_swb_regulator_ops = {
.volt_table = voltages, \
.vsel_reg = (base), \
.vsel_mask = (mask), \
.enable_reg = (base), \
.enable_mask = 0x48, \
}, \
}

Expand Down

0 comments on commit a6dcf97

Please sign in to comment.