Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rk3576 Downstream U-Boot
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
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
Nicolas Frattaroli
Rk3576 Downstream U-Boot
Commits
23466d6a
Commit
23466d6a
authored
19 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
Fix PCIDF calculation in cpu/mpc8260/speed.c for MPC8280EC
Patch by KokHow Teh, 16 Jun 2005
parent
74f92e6a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG
+3
-0
3 additions, 0 deletions
CHANGELOG
cpu/mpc8260/speed.c
+19
-8
19 additions, 8 deletions
cpu/mpc8260/speed.c
with
22 additions
and
8 deletions
CHANGELOG
+
3
−
0
View file @
23466d6a
...
...
@@ -2,6 +2,9 @@
Changes since U-Boot 1.1.4:
======================================================================
* Fix PCIDF calculation in cpu/mpc8260/speed.c for MPC8280EC
Patch by KokHow Teh, 16 Jun 2005
* Add crc of data to jffs2 (in jffs2_1pass_build_lists()).
Patch by Rick Bronson, 15 Jun 2005
...
...
This diff is collapsed.
Click to expand it.
cpu/mpc8260/speed.c
+
19
−
8
View file @
23466d6a
...
...
@@ -163,7 +163,7 @@ int prt_8260_clks (void)
volatile
immap_t
*
immap
=
(
immap_t
*
)
CFG_IMMR
;
ulong
sccr
,
dfbrg
;
ulong
scmr
,
corecnf
,
busdf
,
cpmdf
,
plldf
,
pllmf
;
ulong
scmr
,
corecnf
,
busdf
,
cpmdf
,
plldf
,
pllmf
,
pcidf
;
corecnf_t
*
cp
;
sccr
=
immap
->
im_clkrst
.
car_sccr
;
...
...
@@ -175,6 +175,7 @@ int prt_8260_clks (void)
cpmdf
=
(
scmr
&
SCMR_CPMDF_MSK
)
>>
SCMR_CPMDF_SHIFT
;
plldf
=
(
scmr
&
SCMR_PLLDF
)
?
1
:
0
;
pllmf
=
(
scmr
&
SCMR_PLLMF_MSK
)
>>
SCMR_PLLMF_SHIFT
;
pcidf
=
(
sccr
&
SCCR_PCIDF_MSK
)
>>
SCCR_PCIDF_SHIFT
;
cp
=
&
corecnf_tab
[
corecnf
];
...
...
@@ -204,8 +205,9 @@ int prt_8260_clks (void)
cp
->
vco_div
,
cp
->
freq_60x
,
cp
->
freq_core
);
printf
(
" - dfbrg %ld, corecnf 0x%02lx, busdf %ld, cpmdf %ld, "
"plldf %ld, pllmf %ld
\n
"
,
dfbrg
,
corecnf
,
busdf
,
cpmdf
,
plldf
,
pllmf
);
"plldf %ld, pllmf %ld, pcidf %ld
\n
"
,
dfbrg
,
corecnf
,
busdf
,
cpmdf
,
plldf
,
pllmf
,
pcidf
);
printf
(
" - vco_out %10ld, scc_clk %10ld, brg_clk %10ld
\n
"
,
gd
->
vco_out
,
gd
->
scc_clk
,
gd
->
brg_clk
);
...
...
@@ -215,9 +217,20 @@ int prt_8260_clks (void)
if
(
sccr
&
SCCR_PCI_MODE
)
{
uint
pci_div
;
pci_div
=
(
(
sccr
&
SCCR_PCI_MODCK
)
?
2
:
1
)
*
(
(
(
sccr
&
SCCR_PCIDF_MSK
)
>>
SCCR_PCIDF_SHIFT
)
+
1
);
uint
pcidf
=
(
sccr
&
SCCR_PCIDF_MSK
)
>>
SCCR_PCIDF_SHIFT
;
if
(
sccr
&
SCCR_PCI_MODCK
)
{
pci_div
=
2
;
if
(
pcidf
==
9
)
{
pci_div
*=
5
;
}
else
if
(
pcidf
==
0xB
)
{
pci_div
*=
6
;
}
else
{
pci_div
*=
(
pcidf
+
1
);
}
}
else
{
pci_div
=
pcidf
+
1
;
}
printf
(
" - pci_clk %10ld
\n
"
,
(
gd
->
cpm_clk
*
2
)
/
pci_div
);
}
...
...
@@ -225,5 +238,3 @@ int prt_8260_clks (void)
return
(
0
);
}
/* ------------------------------------------------------------------------- */
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