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
Kirill Smelkov
linux
Commits
f0386617
Commit
f0386617
authored
Jul 04, 2019
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'regulator-5.2' into regulator-linus
parents
6fbc7275
9d83dcb3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
11 deletions
+22
-11
drivers/regulator/s2mps11.c
drivers/regulator/s2mps11.c
+18
-10
include/linux/mfd/samsung/core.h
include/linux/mfd/samsung/core.h
+1
-0
include/linux/mfd/samsung/s2mps11.h
include/linux/mfd/samsung/s2mps11.h
+3
-1
No files found.
drivers/regulator/s2mps11.c
View file @
f0386617
...
...
@@ -269,9 +269,10 @@ static const struct regulator_ops s2mps11_buck_ops = {
.ops = &s2mps11_buck_ops, \
.type = REGULATOR_VOLTAGE, \
.owner = THIS_MODULE, \
.min_uV = MIN_6
0
0_MV, \
.min_uV = MIN_6
5
0_MV, \
.uV_step = STEP_6_25_MV, \
.n_voltages = S2MPS11_BUCK_N_VOLTAGES, \
.linear_min_sel = 8, \
.n_voltages = S2MPS11_BUCK12346_N_VOLTAGES, \
.ramp_delay = S2MPS11_RAMP_DELAY, \
.vsel_reg = S2MPS11_REG_B1CTRL2 + (num - 1) * 2, \
.vsel_mask = S2MPS11_BUCK_VSEL_MASK, \
...
...
@@ -285,9 +286,10 @@ static const struct regulator_ops s2mps11_buck_ops = {
.ops = &s2mps11_buck_ops, \
.type = REGULATOR_VOLTAGE, \
.owner = THIS_MODULE, \
.min_uV = MIN_6
0
0_MV, \
.min_uV = MIN_6
5
0_MV, \
.uV_step = STEP_6_25_MV, \
.n_voltages = S2MPS11_BUCK_N_VOLTAGES, \
.linear_min_sel = 8, \
.n_voltages = S2MPS11_BUCK5_N_VOLTAGES, \
.ramp_delay = S2MPS11_RAMP_DELAY, \
.vsel_reg = S2MPS11_REG_B5CTRL2, \
.vsel_mask = S2MPS11_BUCK_VSEL_MASK, \
...
...
@@ -295,7 +297,7 @@ static const struct regulator_ops s2mps11_buck_ops = {
.enable_mask = S2MPS11_ENABLE_MASK \
}
#define regulator_desc_s2mps11_buck67810(num, min, step) { \
#define regulator_desc_s2mps11_buck67810(num, min, step
, min_sel, voltages
) { \
.name = "BUCK"#num, \
.id = S2MPS11_BUCK##num, \
.ops = &s2mps11_buck_ops, \
...
...
@@ -303,7 +305,8 @@ static const struct regulator_ops s2mps11_buck_ops = {
.owner = THIS_MODULE, \
.min_uV = min, \
.uV_step = step, \
.n_voltages = S2MPS11_BUCK_N_VOLTAGES, \
.linear_min_sel = min_sel, \
.n_voltages = voltages, \
.ramp_delay = S2MPS11_RAMP_DELAY, \
.vsel_reg = S2MPS11_REG_B6CTRL2 + (num - 6) * 2, \
.vsel_mask = S2MPS11_BUCK_VSEL_MASK, \
...
...
@@ -371,11 +374,15 @@ static const struct regulator_desc s2mps11_regulators[] = {
regulator_desc_s2mps11_buck1_4
(
3
),
regulator_desc_s2mps11_buck1_4
(
4
),
regulator_desc_s2mps11_buck5
,
regulator_desc_s2mps11_buck67810
(
6
,
MIN_600_MV
,
STEP_6_25_MV
),
regulator_desc_s2mps11_buck67810
(
7
,
MIN_600_MV
,
STEP_12_5_MV
),
regulator_desc_s2mps11_buck67810
(
8
,
MIN_600_MV
,
STEP_12_5_MV
),
regulator_desc_s2mps11_buck67810
(
6
,
MIN_650_MV
,
STEP_6_25_MV
,
8
,
S2MPS11_BUCK12346_N_VOLTAGES
),
regulator_desc_s2mps11_buck67810
(
7
,
MIN_750_MV
,
STEP_12_5_MV
,
0
,
S2MPS11_BUCK7810_N_VOLTAGES
),
regulator_desc_s2mps11_buck67810
(
8
,
MIN_750_MV
,
STEP_12_5_MV
,
0
,
S2MPS11_BUCK7810_N_VOLTAGES
),
regulator_desc_s2mps11_buck9
,
regulator_desc_s2mps11_buck67810
(
10
,
MIN_750_MV
,
STEP_12_5_MV
),
regulator_desc_s2mps11_buck67810
(
10
,
MIN_750_MV
,
STEP_12_5_MV
,
0
,
S2MPS11_BUCK7810_N_VOLTAGES
),
};
static
const
struct
regulator_ops
s2mps14_reg_ops
;
...
...
@@ -824,6 +831,7 @@ static void s2mps14_pmic_dt_parse_ext_control_gpio(struct platform_device *pdev,
if
(
IS_ERR
(
gpio
[
reg
]))
{
dev_err
(
&
pdev
->
dev
,
"Failed to get control GPIO for %d/%s
\n
"
,
reg
,
rdata
[
reg
].
name
);
gpio
[
reg
]
=
NULL
;
continue
;
}
if
(
gpio
[
reg
])
...
...
include/linux/mfd/samsung/core.h
View file @
f0386617
...
...
@@ -20,6 +20,7 @@
#define MIN_850_MV 850000
#define MIN_800_MV 800000
#define MIN_750_MV 750000
#define MIN_650_MV 650000
#define MIN_600_MV 600000
#define MIN_500_MV 500000
...
...
include/linux/mfd/samsung/s2mps11.h
View file @
f0386617
...
...
@@ -170,7 +170,9 @@ enum s2mps11_regulators {
#define S2MPS11_ENABLE_MASK (0x03 << S2MPS11_ENABLE_SHIFT)
#define S2MPS11_ENABLE_SHIFT 0x06
#define S2MPS11_LDO_N_VOLTAGES (S2MPS11_LDO_VSEL_MASK + 1)
#define S2MPS11_BUCK_N_VOLTAGES (S2MPS11_BUCK_VSEL_MASK + 1)
#define S2MPS11_BUCK12346_N_VOLTAGES 153
#define S2MPS11_BUCK5_N_VOLTAGES 216
#define S2MPS11_BUCK7810_N_VOLTAGES 225
#define S2MPS11_BUCK9_N_VOLTAGES (S2MPS11_BUCK9_VSEL_MASK + 1)
#define S2MPS11_RAMP_DELAY 25000
/* uV/us */
...
...
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