Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
113620bb
Commit
113620bb
authored
Jan 16, 2015
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/fix/s2mps11' into regulator-linus
parents
d5613379
ad26aa6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
4 deletions
+40
-4
drivers/regulator/s2mps11.c
drivers/regulator/s2mps11.c
+38
-4
include/linux/mfd/samsung/s2mps13.h
include/linux/mfd/samsung/s2mps13.h
+2
-0
No files found.
drivers/regulator/s2mps11.c
View file @
113620bb
...
...
@@ -405,6 +405,40 @@ static struct regulator_ops s2mps14_reg_ops;
.enable_mask = S2MPS14_ENABLE_MASK \
}
#define regulator_desc_s2mps13_buck7(num, min, step, min_sel) { \
.name = "BUCK"#num, \
.id = S2MPS13_BUCK##num, \
.ops = &s2mps14_reg_ops, \
.type = REGULATOR_VOLTAGE, \
.owner = THIS_MODULE, \
.min_uV = min, \
.uV_step = step, \
.linear_min_sel = min_sel, \
.n_voltages = S2MPS14_BUCK_N_VOLTAGES, \
.ramp_delay = S2MPS13_BUCK_RAMP_DELAY, \
.vsel_reg = S2MPS13_REG_B1OUT + (num) * 2 - 1, \
.vsel_mask = S2MPS14_BUCK_VSEL_MASK, \
.enable_reg = S2MPS13_REG_B1CTRL + (num - 1) * 2, \
.enable_mask = S2MPS14_ENABLE_MASK \
}
#define regulator_desc_s2mps13_buck8_10(num, min, step, min_sel) { \
.name = "BUCK"#num, \
.id = S2MPS13_BUCK##num, \
.ops = &s2mps14_reg_ops, \
.type = REGULATOR_VOLTAGE, \
.owner = THIS_MODULE, \
.min_uV = min, \
.uV_step = step, \
.linear_min_sel = min_sel, \
.n_voltages = S2MPS14_BUCK_N_VOLTAGES, \
.ramp_delay = S2MPS13_BUCK_RAMP_DELAY, \
.vsel_reg = S2MPS13_REG_B1OUT + (num) * 2 - 1, \
.vsel_mask = S2MPS14_BUCK_VSEL_MASK, \
.enable_reg = S2MPS13_REG_B1CTRL + (num) * 2 - 1, \
.enable_mask = S2MPS14_ENABLE_MASK \
}
static
const
struct
regulator_desc
s2mps13_regulators
[]
=
{
regulator_desc_s2mps13_ldo
(
1
,
MIN_800_MV
,
STEP_12_5_MV
,
0x00
),
regulator_desc_s2mps13_ldo
(
2
,
MIN_1400_MV
,
STEP_50_MV
,
0x0C
),
...
...
@@ -452,10 +486,10 @@ static const struct regulator_desc s2mps13_regulators[] = {
regulator_desc_s2mps13_buck
(
4
,
MIN_500_MV
,
STEP_6_25_MV
,
0x10
),
regulator_desc_s2mps13_buck
(
5
,
MIN_500_MV
,
STEP_6_25_MV
,
0x10
),
regulator_desc_s2mps13_buck
(
6
,
MIN_500_MV
,
STEP_6_25_MV
,
0x10
),
regulator_desc_s2mps13_buck
(
7
,
MIN_500_MV
,
STEP_6_25_MV
,
0x10
),
regulator_desc_s2mps13_buck
(
8
,
MIN_1000_MV
,
STEP_12_5_MV
,
0x20
),
regulator_desc_s2mps13_buck
(
9
,
MIN_1000_MV
,
STEP_12_5_MV
,
0x20
),
regulator_desc_s2mps13_buck
(
10
,
MIN_500_MV
,
STEP_6_25_MV
,
0x10
),
regulator_desc_s2mps13_buck
7
(
7
,
MIN_500_MV
,
STEP_6_25_MV
,
0x10
),
regulator_desc_s2mps13_buck
8_10
(
8
,
MIN_1000_MV
,
STEP_12_5_MV
,
0x20
),
regulator_desc_s2mps13_buck
8_10
(
9
,
MIN_1000_MV
,
STEP_12_5_MV
,
0x20
),
regulator_desc_s2mps13_buck
8_10
(
10
,
MIN_500_MV
,
STEP_6_25_MV
,
0x10
),
};
static
int
s2mps14_regulator_enable
(
struct
regulator_dev
*
rdev
)
...
...
include/linux/mfd/samsung/s2mps13.h
View file @
113620bb
...
...
@@ -59,6 +59,7 @@ enum s2mps13_reg {
S2MPS13_REG_B6CTRL
,
S2MPS13_REG_B6OUT
,
S2MPS13_REG_B7CTRL
,
S2MPS13_REG_B7SW
,
S2MPS13_REG_B7OUT
,
S2MPS13_REG_B8CTRL
,
S2MPS13_REG_B8OUT
,
...
...
@@ -102,6 +103,7 @@ enum s2mps13_reg {
S2MPS13_REG_L26CTRL
,
S2MPS13_REG_L27CTRL
,
S2MPS13_REG_L28CTRL
,
S2MPS13_REG_L29CTRL
,
S2MPS13_REG_L30CTRL
,
S2MPS13_REG_L31CTRL
,
S2MPS13_REG_L32CTRL
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment