projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9eaa44
)
regulator: pfuze100: Support SWB enable/disable
author
Sean Cross
<
[email protected]
>
Mon, 26 May 2014 08:45:40 +0000
(16:45 +0800)
committer
Mark Brown
<
[email protected]
>
Mon, 26 May 2014 15:45:16 +0000
(16:45 +0100)
The SWB regulators have the ability to be turned on and off. Add
enable/disable support for these regulators.
Signed-off-by: Sean Cross <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
drivers/regulator/pfuze100-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/pfuze100-regulator.c
b/drivers/regulator/pfuze100-regulator.c
index 67e678c4301c4d1e6dd0d4b4fc5b6238231557cd..b20304bae7abe49cc7a3dbc17eb9fc4f7df8baa8 100644
(file)
--- a/
drivers/regulator/pfuze100-regulator.c
+++ b/
drivers/regulator/pfuze100-regulator.c
@@
-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,
@@
-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, \
}, \
}