Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
E-EXK4 - Operating System Group
projects
Linux
Commits
780a0ff7
Commit
780a0ff7
authored
11 years ago
by
Mark Brown
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'regulator/fix/palmas' into regulator-linus
parents
3abd38db
ae3e1012
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/regulator/palmas-regulator.c
+7
-7
7 additions, 7 deletions
drivers/regulator/palmas-regulator.c
with
7 additions
and
7 deletions
drivers/regulator/palmas-regulator.c
+
7
−
7
View file @
780a0ff7
...
@@ -201,13 +201,7 @@ static unsigned int palmas_smps_ramp_delay[4] = {0, 10000, 5000, 2500};
...
@@ -201,13 +201,7 @@ static unsigned int palmas_smps_ramp_delay[4] = {0, 10000, 5000, 2500};
#define SMPS_CTRL_MODE_ECO 0x02
#define SMPS_CTRL_MODE_ECO 0x02
#define SMPS_CTRL_MODE_PWM 0x03
#define SMPS_CTRL_MODE_PWM 0x03
/* These values are derived from the data sheet. And are the number of steps
#define PALMAS_SMPS_NUM_VOLTAGES 122
* where there is a voltage change, the ranges at beginning and end of register
* max/min values where there are no change are ommitted.
*
* So they are basically (maxV-minV)/stepV
*/
#define PALMAS_SMPS_NUM_VOLTAGES 117
#define PALMAS_SMPS10_NUM_VOLTAGES 2
#define PALMAS_SMPS10_NUM_VOLTAGES 2
#define PALMAS_LDO_NUM_VOLTAGES 50
#define PALMAS_LDO_NUM_VOLTAGES 50
...
@@ -979,6 +973,7 @@ static int palmas_regulators_probe(struct platform_device *pdev)
...
@@ -979,6 +973,7 @@ static int palmas_regulators_probe(struct platform_device *pdev)
pmic
->
desc
[
id
].
min_uV
=
900000
;
pmic
->
desc
[
id
].
min_uV
=
900000
;
pmic
->
desc
[
id
].
uV_step
=
50000
;
pmic
->
desc
[
id
].
uV_step
=
50000
;
pmic
->
desc
[
id
].
linear_min_sel
=
1
;
pmic
->
desc
[
id
].
linear_min_sel
=
1
;
pmic
->
desc
[
id
].
enable_time
=
500
;
pmic
->
desc
[
id
].
vsel_reg
=
pmic
->
desc
[
id
].
vsel_reg
=
PALMAS_BASE_TO_REG
(
PALMAS_LDO_BASE
,
PALMAS_BASE_TO_REG
(
PALMAS_LDO_BASE
,
palmas_regs_info
[
id
].
vsel_addr
);
palmas_regs_info
[
id
].
vsel_addr
);
...
@@ -997,6 +992,11 @@ static int palmas_regulators_probe(struct platform_device *pdev)
...
@@ -997,6 +992,11 @@ static int palmas_regulators_probe(struct platform_device *pdev)
pmic
->
desc
[
id
].
min_uV
=
450000
;
pmic
->
desc
[
id
].
min_uV
=
450000
;
pmic
->
desc
[
id
].
uV_step
=
25000
;
pmic
->
desc
[
id
].
uV_step
=
25000
;
}
}
/* LOD6 in vibrator mode will have enable time 2000us */
if
(
pdata
&&
pdata
->
ldo6_vibrator
&&
(
id
==
PALMAS_REG_LDO6
))
pmic
->
desc
[
id
].
enable_time
=
2000
;
}
else
{
}
else
{
pmic
->
desc
[
id
].
n_voltages
=
1
;
pmic
->
desc
[
id
].
n_voltages
=
1
;
pmic
->
desc
[
id
].
ops
=
&
palmas_ops_extreg
;
pmic
->
desc
[
id
].
ops
=
&
palmas_ops_extreg
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment