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
Jack Humbert
reform-boundary-uboot
Commits
07a2505f
Commit
07a2505f
authored
19 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
Fix compiler warnings
parent
cbf9c117
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpu/mpc83xx/cpu.c
+14
-8
14 additions, 8 deletions
cpu/mpc83xx/cpu.c
with
14 additions
and
8 deletions
cpu/mpc83xx/cpu.c
+
14
−
8
View file @
07a2505f
...
...
@@ -22,7 +22,7 @@
* Change log:
*
* 20050101: Eran Liberty (liberty@freescale.com)
*
Initial file creating (porting from 85XX & 8260)
*
Initial file creating (porting from 85XX & 8260)
*/
/*
...
...
@@ -74,7 +74,10 @@ void upmconfig (uint upm, uint *table, uint size)
int
do_reset
(
cmd_tbl_t
*
cmdtp
,
int
flag
,
int
argc
,
char
*
argv
[])
{
ulong
msr
,
addr
;
ulong
msr
;
#ifndef MPC83xx_RESET
ulong
addr
;
#endif
volatile
immap_t
*
immap
=
(
immap_t
*
)
CFG_IMMRBAR
;
...
...
@@ -97,12 +100,14 @@ do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
udelay
(
200
);
/* perform reset, only one bit */
immap
->
reset
.
rcr
=
RCR_SWHR
;
#else
immap
->
reset
.
rmr
=
RMR_CSRE
;
/* Checkstop Reset enable
*/
immap
->
reset
.
rcr
=
RCR_SWHR
;
#else
/* ! MPC83xx_RESET
*/
/* Interrupts and MMU off */
__asm__
__volatile__
(
"mfmsr %0"
:
"=r"
(
msr
)
:
);
immap
->
reset
.
rmr
=
RMR_CSRE
;
/* Checkstop Reset enable */
/* Interrupts and MMU off */
__asm__
__volatile__
(
"mfmsr %0"
:
"=r"
(
msr
)
:
);
msr
&=
~
(
MSR_ME
|
MSR_EE
|
MSR_IR
|
MSR_DR
);
__asm__
__volatile__
(
"mtmsr %0"
::
"r"
(
msr
));
...
...
@@ -116,7 +121,8 @@ do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
printf
(
"resetting the board."
);
printf
(
"
\n
"
);
((
void
(
*
)(
void
))
addr
)
();
#endif
#endif
/* MPC83xx_RESET */
return
1
;
}
...
...
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