Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Reform
reform-boundary-uboot
Commits
d65cfe89
Commit
d65cfe89
authored
19 years ago
by
Jon Loeliger
Browse files
Options
Downloads
Patches
Plain Diff
* Patch by Jon Loeliger 2005-02-08
Determine L2 Cache size dynamically on 85XX boards.
parent
9c4c5ae3
No related branches found
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/mpc85xx/cpu_init.c
+16
-1
16 additions, 1 deletion
cpu/mpc85xx/cpu_init.c
with
19 additions
and
1 deletion
CHANGELOG
+
3
−
0
View file @
d65cfe89
======================================================================
======================================================================
Changes for U-Boot 1.1.3:
Changes for U-Boot 1.1.3:
======================================================================
======================================================================
* Patch by Jon Loeliger 2005-02-08
Determine L2 Cache size dynamically on 85XX boards.
* Patch by Jon Loeliger, Kumar Gala 2005-02-08
* Patch by Jon Loeliger, Kumar Gala 2005-02-08
- Convert the CPM2 based functionality to use new CONFIG_CPM2
- Convert the CPM2 based functionality to use new CONFIG_CPM2
option rather than a myriad of CONFIG_MPC8560-like variants.
option rather than a myriad of CONFIG_MPC8560-like variants.
...
...
This diff is collapsed.
Click to expand it.
cpu/mpc85xx/cpu_init.c
+
16
−
1
View file @
d65cfe89
...
@@ -188,6 +188,21 @@ int cpu_init_r (void)
...
@@ -188,6 +188,21 @@ int cpu_init_r (void)
volatile
ccsr_l2cache_t
*
l2cache
=
&
immap
->
im_l2cache
;
volatile
ccsr_l2cache_t
*
l2cache
=
&
immap
->
im_l2cache
;
volatile
uint
temp
;
volatile
uint
temp
;
asm
(
"msync;isync"
);
temp
=
l2cache
->
l2ctl
;
temp
&=
0x30000000
;
switch
(
temp
)
{
case
0x20000000
:
printf
(
"L2 cache 256KB:"
);
break
;
case
0x00000000
:
case
0x10000000
:
case
0x30000000
:
default:
printf
(
"L2 cache unknown size. Check the silicon!
\n
"
);
return
-
1
;
}
asm
(
"msync;isync"
);
asm
(
"msync;isync"
);
l2cache
->
l2ctl
=
0x68000000
;
/* invalidate */
l2cache
->
l2ctl
=
0x68000000
;
/* invalidate */
temp
=
l2cache
->
l2ctl
;
temp
=
l2cache
->
l2ctl
;
...
@@ -196,7 +211,7 @@ int cpu_init_r (void)
...
@@ -196,7 +211,7 @@ int cpu_init_r (void)
temp
=
l2cache
->
l2ctl
;
temp
=
l2cache
->
l2ctl
;
asm
(
"msync;isync"
);
asm
(
"msync;isync"
);
printf
(
"
L2: 256 kB
enabled
\n
"
);
printf
(
"enabled
\n
"
);
#else
#else
printf
(
"L2: disabled.
\n
"
);
printf
(
"L2: disabled.
\n
"
);
#endif
#endif
...
...
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