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
dd641e8e
Commit
dd641e8e
authored
Sep 30, 2005
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: OMAP: Do not try to change rate on omap2 if no speed found
Do not try to change rate on omap2 if no speed found
parent
cb162e78
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
arch/arm/mach-omap2/clock.c
arch/arm/mach-omap2/clock.c
+6
-2
No files found.
arch/arm/mach-omap2/clock.c
View file @
dd641e8e
...
...
@@ -24,6 +24,7 @@
#include <linux/delay.h>
#include <asm/io.h>
#include <asm/hardware/clock.h>
#include <asm/arch/clock.h>
#include <asm/arch/sram.h>
...
...
@@ -869,6 +870,7 @@ static int omap2_select_table_rate(struct clk * clk, unsigned long rate)
u32
flags
,
cur_rate
,
done_rate
,
bypass
=
0
;
u8
cpu_mask
;
struct
prcm_config
*
prcm
;
unsigned
long
found_speed
=
0
;
if
(
clk
!=
&
virt_prcm_set
)
return
-
EINVAL
;
...
...
@@ -886,11 +888,13 @@ static int omap2_select_table_rate(struct clk * clk, unsigned long rate)
if
(
prcm
->
xtal_speed
!=
sys_ck
.
rate
)
continue
;
if
(
prcm
->
mpu_speed
<=
rate
)
if
(
prcm
->
mpu_speed
<=
rate
)
{
found_speed
=
prcm
->
mpu_speed
;
break
;
}
}
if
(
!
prcm
->
mpu
_speed
)
{
if
(
!
found
_speed
)
{
printk
(
KERN_INFO
"Could not set MPU rate to %luMHz
\n
"
,
rate
/
1000000
);
return
-
EINVAL
;
...
...
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