Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
bab9bf1e
Commit
bab9bf1e
authored
Sep 05, 2006
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Plain Diff
Merge source.mvista.com:/home/git/linux-omap-2.6
parents
9cb4dc2e
6f04b38e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
drivers/i2c/chips/menelaus.c
drivers/i2c/chips/menelaus.c
+30
-0
No files found.
drivers/i2c/chips/menelaus.c
View file @
bab9bf1e
...
...
@@ -594,6 +594,36 @@ int menelaus_set_vmmc(unsigned int mV)
}
EXPORT_SYMBOL
(
menelaus_set_vmmc
);
static
const
struct
menelaus_vtg_value
vaux_values
[]
=
{
{
1500
,
0
},
{
1800
,
1
},
{
2500
,
2
},
{
2800
,
3
},
};
static
const
struct
menelaus_vtg
vaux_vtg
=
{
.
name
=
"VAUX"
,
.
vtg_reg
=
MENELAUS_LDO_CTRL1
,
.
vtg_shift
=
4
,
.
vtg_bits
=
2
,
.
mode_reg
=
MENELAUS_LDO_CTRL6
,
};
int
menelaus_set_vaux
(
unsigned
int
mV
)
{
int
val
;
if
(
mV
==
0
)
return
menelaus_set_voltage
(
&
vaux_vtg
,
0
,
0
,
0
);
val
=
menelaus_get_vtg_value
(
mV
,
vaux_values
,
ARRAY_SIZE
(
vaux_values
));
if
(
val
<
0
)
return
-
EINVAL
;
return
menelaus_set_voltage
(
&
vaux_vtg
,
mV
,
val
,
0x02
);
}
EXPORT_SYMBOL
(
menelaus_set_vaux
);
int
menelaus_get_slot_pin_states
(
void
)
{
return
menelaus_read_reg
(
MENELAUS_MCT_PIN_ST
);
...
...
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