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
e616e2f1
Commit
e616e2f1
authored
Aug 30, 2015
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/fix/pbias' into regulator-linus
parents
c13dcf9f
c329061b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
drivers/regulator/pbias-regulator.c
drivers/regulator/pbias-regulator.c
+5
-0
No files found.
drivers/regulator/pbias-regulator.c
View file @
e616e2f1
...
...
@@ -30,6 +30,7 @@
struct
pbias_reg_info
{
u32
enable
;
u32
enable_mask
;
u32
disable_val
;
u32
vmode
;
unsigned
int
enable_time
;
char
*
name
;
...
...
@@ -62,6 +63,7 @@ static const struct pbias_reg_info pbias_mmc_omap2430 = {
.
enable
=
BIT
(
1
),
.
enable_mask
=
BIT
(
1
),
.
vmode
=
BIT
(
0
),
.
disable_val
=
0
,
.
enable_time
=
100
,
.
name
=
"pbias_mmc_omap2430"
};
...
...
@@ -77,6 +79,7 @@ static const struct pbias_reg_info pbias_sim_omap3 = {
static
const
struct
pbias_reg_info
pbias_mmc_omap4
=
{
.
enable
=
BIT
(
26
)
|
BIT
(
22
),
.
enable_mask
=
BIT
(
26
)
|
BIT
(
25
)
|
BIT
(
22
),
.
disable_val
=
BIT
(
25
),
.
vmode
=
BIT
(
21
),
.
enable_time
=
100
,
.
name
=
"pbias_mmc_omap4"
...
...
@@ -85,6 +88,7 @@ static const struct pbias_reg_info pbias_mmc_omap4 = {
static
const
struct
pbias_reg_info
pbias_mmc_omap5
=
{
.
enable
=
BIT
(
27
)
|
BIT
(
26
),
.
enable_mask
=
BIT
(
27
)
|
BIT
(
25
)
|
BIT
(
26
),
.
disable_val
=
BIT
(
25
),
.
vmode
=
BIT
(
21
),
.
enable_time
=
100
,
.
name
=
"pbias_mmc_omap5"
...
...
@@ -159,6 +163,7 @@ static int pbias_regulator_probe(struct platform_device *pdev)
drvdata
[
data_idx
].
desc
.
enable_reg
=
res
->
start
;
drvdata
[
data_idx
].
desc
.
enable_mask
=
info
->
enable_mask
;
drvdata
[
data_idx
].
desc
.
enable_val
=
info
->
enable
;
drvdata
[
data_idx
].
desc
.
disable_val
=
info
->
disable_val
;
cfg
.
init_data
=
pbias_matches
[
idx
].
init_data
;
cfg
.
driver_data
=
&
drvdata
[
data_idx
];
...
...
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