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
7cd43751
Commit
7cd43751
authored
Sep 03, 2014
by
Mike Turquette
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-v3.17-rc/ti-clk-driver' of github.com:t-kristo/linux-pm into clk-fixes
parents
d8210e28
20411dad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
drivers/clk/ti/clk-dra7-atl.c
drivers/clk/ti/clk-dra7-atl.c
+5
-1
drivers/clk/ti/divider.c
drivers/clk/ti/divider.c
+6
-1
No files found.
drivers/clk/ti/clk-dra7-atl.c
View file @
7cd43751
...
...
@@ -139,9 +139,13 @@ static long atl_clk_round_rate(struct clk_hw *hw, unsigned long rate,
static
int
atl_clk_set_rate
(
struct
clk_hw
*
hw
,
unsigned
long
rate
,
unsigned
long
parent_rate
)
{
struct
dra7_atl_desc
*
cdesc
=
to_atl_desc
(
hw
)
;
struct
dra7_atl_desc
*
cdesc
;
u32
divider
;
if
(
!
hw
||
!
rate
)
return
-
EINVAL
;
cdesc
=
to_atl_desc
(
hw
);
divider
=
((
parent_rate
+
rate
/
2
)
/
rate
)
-
1
;
if
(
divider
>
DRA7_ATL_DIVIDER_MASK
)
divider
=
DRA7_ATL_DIVIDER_MASK
;
...
...
drivers/clk/ti/divider.c
View file @
7cd43751
...
...
@@ -211,11 +211,16 @@ static long ti_clk_divider_round_rate(struct clk_hw *hw, unsigned long rate,
static
int
ti_clk_divider_set_rate
(
struct
clk_hw
*
hw
,
unsigned
long
rate
,
unsigned
long
parent_rate
)
{
struct
clk_divider
*
divider
=
to_clk_divider
(
hw
)
;
struct
clk_divider
*
divider
;
unsigned
int
div
,
value
;
unsigned
long
flags
=
0
;
u32
val
;
if
(
!
hw
||
!
rate
)
return
-
EINVAL
;
divider
=
to_clk_divider
(
hw
);
div
=
DIV_ROUND_UP
(
parent_rate
,
rate
);
value
=
_get_val
(
divider
,
div
);
...
...
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