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
7b4fd36b
Commit
7b4fd36b
authored
19 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
Add support for MPC859/866 Rev. A.0
parent
0a112d86
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpu/mpc8xx/cpu.c
+8
-3
8 additions, 3 deletions
cpu/mpc8xx/cpu.c
with
8 additions
and
3 deletions
cpu/mpc8xx/cpu.c
+
8
−
3
View file @
7b4fd36b
...
@@ -69,14 +69,15 @@ static int check_CPU (long clock, uint pvr, uint immr)
...
@@ -69,14 +69,15 @@ static int check_CPU (long clock, uint pvr, uint immr)
k
=
(
immr
<<
16
)
|
*
((
ushort
*
)
&
immap
->
im_cpm
.
cp_dparam
[
0xB0
]);
k
=
(
immr
<<
16
)
|
*
((
ushort
*
)
&
immap
->
im_cpm
.
cp_dparam
[
0xB0
]);
m
=
0
;
m
=
0
;
suf
=
""
;
/*
/*
* Some boards use sockets so different CPUs can be used.
* Some boards use sockets so different CPUs can be used.
* We have to check chip version in run time.
* We have to check chip version in run time.
*/
*/
switch
(
k
)
{
switch
(
k
)
{
case
0x00020001
:
pre
=
'P'
;
suf
=
""
;
break
;
case
0x00020001
:
pre
=
'P'
;
break
;
case
0x00030001
:
suf
=
""
;
break
;
case
0x00030001
:
break
;
case
0x00120003
:
suf
=
"A"
;
break
;
case
0x00120003
:
suf
=
"A"
;
break
;
case
0x00130003
:
suf
=
"A3"
;
break
;
case
0x00130003
:
suf
=
"A3"
;
break
;
...
@@ -93,7 +94,11 @@ static int check_CPU (long clock, uint pvr, uint immr)
...
@@ -93,7 +94,11 @@ static int check_CPU (long clock, uint pvr, uint immr)
/* this value is not documented anywhere */
/* this value is not documented anywhere */
case
0x40000000
:
pre
=
'P'
;
suf
=
"D"
;
m
=
1
;
break
;
case
0x40000000
:
pre
=
'P'
;
suf
=
"D"
;
m
=
1
;
break
;
/* MPC866P/MPC866T/MPC859T/MPC859DSL/MPC852T */
/* MPC866P/MPC866T/MPC859T/MPC859DSL/MPC852T */
case
0x08000003
:
pre
=
'M'
;
suf
=
""
;
m
=
1
;
case
0x08010004
:
/* Rev. A.0 */
suf
=
"A"
;
/* fall through */
case
0x08000003
:
/* Rev. 0.3 */
pre
=
'M'
;
m
=
1
;
if
(
id_str
==
NULL
)
if
(
id_str
==
NULL
)
id_str
=
id_str
=
# if defined(CONFIG_MPC852T)
# if defined(CONFIG_MPC852T)
...
...
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