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
5d718e5a
Commit
5d718e5a
authored
Oct 03, 2005
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Plain Diff
Merge with /home/tmlind/src/kernel/linux-omap-2.6
parents
1d045369
254da35d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
arch/arm/mach-omap1/clock.c
arch/arm/mach-omap1/clock.c
+2
-6
No files found.
arch/arm/mach-omap1/clock.c
View file @
5d718e5a
...
...
@@ -552,25 +552,21 @@ static int omap1_clk_set_rate(struct clk *clk, unsigned long rate)
__u16
regval
;
unsigned
long
flags
;
if
(
clk
->
set_rate
!=
0
)
{
spin_lock_irqsave
(
&
clockfw_lock
,
flags
);
if
(
clk
->
set_rate
)
ret
=
clk
->
set_rate
(
clk
,
rate
);
spin_unlock_irqrestore
(
&
clockfw_lock
,
flags
);
}
else
if
(
clk
->
flags
&
RATE_CKCTL
)
{
else
if
(
clk
->
flags
&
RATE_CKCTL
)
{
dsor_exp
=
calc_dsor_exp
(
clk
,
rate
);
if
(
dsor_exp
>
3
)
dsor_exp
=
-
EINVAL
;
if
(
dsor_exp
<
0
)
return
dsor_exp
;
spin_lock_irqsave
(
&
clockfw_lock
,
flags
);
regval
=
omap_readw
(
ARM_CKCTL
);
regval
&=
~
(
3
<<
clk
->
rate_offset
);
regval
|=
dsor_exp
<<
clk
->
rate_offset
;
regval
=
verify_ckctl_value
(
regval
);
omap_writew
(
regval
,
ARM_CKCTL
);
clk
->
rate
=
clk
->
parent
->
rate
/
(
1
<<
dsor_exp
);
spin_unlock_irqrestore
(
&
clockfw_lock
,
flags
);
ret
=
0
;
}
...
...
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