Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot-2015.04
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vesta
u-boot-2015.04
Commits
ee1e35be
Commit
ee1e35be
authored
16 years ago
by
Kumar Gala
Committed by
Andrew Fleming-AFLEMING
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
85xx: Only use PORPLLSR[DDR_Ratio] on platforms that define it
Signed-off-by:
Kumar Gala
<
galak@kernel.crashing.org
>
parent
3b9519fc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpu/mpc85xx/cpu.c
+6
-2
6 additions, 2 deletions
cpu/mpc85xx/cpu.c
with
6 additions
and
2 deletions
cpu/mpc85xx/cpu.c
+
6
−
2
View file @
ee1e35be
...
...
@@ -75,8 +75,12 @@ int checkcpu (void)
uint
ver
;
uint
major
,
minor
;
int
i
;
u32
ddr_ratio
;
#ifdef CONFIG_DDR_CLK_FREQ
volatile
ccsr_gur_t
*
gur
=
(
void
*
)(
CFG_MPC85xx_GUTS_ADDR
);
u32
ddr_ratio
=
((
gur
->
porpllsr
)
&
0x00003e00
)
>>
9
;
#else
u32
ddr_ratio
=
0
;
#endif
svr
=
get_svr
();
ver
=
SVR_SOC_VER
(
svr
);
...
...
@@ -118,7 +122,7 @@ int checkcpu (void)
puts
(
"Clock Configuration:
\n
"
);
printf
(
" CPU:%4lu MHz, "
,
DIV_ROUND_UP
(
sysinfo
.
freqProcessor
,
1000000
));
printf
(
"CCB:%4lu MHz,
\n
"
,
DIV_ROUND_UP
(
sysinfo
.
freqSystemBus
,
1000000
));
ddr_ratio
=
((
gur
->
porpllsr
)
&
0x00003e00
)
>>
9
;
switch
(
ddr_ratio
)
{
case
0x0
:
printf
(
" DDR:%4lu MHz (%lu MT/s data rate), "
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment