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
60908305
Commit
60908305
authored
Jul 01, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/topic/of' into regulator-next
parents
5ee6c728
93134c7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
Documentation/devicetree/bindings/regulator/regulator.txt
Documentation/devicetree/bindings/regulator/regulator.txt
+1
-0
drivers/regulator/of_regulator.c
drivers/regulator/of_regulator.c
+3
-0
No files found.
Documentation/devicetree/bindings/regulator/regulator.txt
View file @
60908305
...
...
@@ -9,6 +9,7 @@ Optional properties:
- regulator-max-microamp: largest current consumers may set
- regulator-always-on: boolean, regulator should never be disabled
- regulator-boot-on: bootloader/firmware enabled regulator
- regulator-allow-bypass: allow the regulator to go into bypass mode
- <name>-supply: phandle to the parent supply/regulator node
- regulator-ramp-delay: ramp delay for regulator(in uV/uS)
...
...
drivers/regulator/of_regulator.c
View file @
60908305
...
...
@@ -61,6 +61,9 @@ static void of_get_regulation_constraints(struct device_node *np,
else
/* status change should be possible if not always on. */
constraints
->
valid_ops_mask
|=
REGULATOR_CHANGE_STATUS
;
if
(
of_property_read_bool
(
np
,
"regulator-allow-bypass"
))
constraints
->
valid_ops_mask
|=
REGULATOR_CHANGE_BYPASS
;
ramp_delay
=
of_get_property
(
np
,
"regulator-ramp-delay"
,
NULL
);
if
(
ramp_delay
)
constraints
->
ramp_delay
=
be32_to_cpu
(
*
ramp_delay
);
...
...
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