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
793670c3
Commit
793670c3
authored
16 years ago
by
Sergei Poselenov
Committed by
Wolfgang Denk
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed reset for socrates
Signed-off-by:
Sergei Poselenov
<
sposelenov@emcraft.com
>
parent
e18575d5
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
+14
-9
14 additions, 9 deletions
cpu/mpc85xx/cpu.c
with
14 additions
and
9 deletions
cpu/mpc85xx/cpu.c
+
14
−
9
View file @
793670c3
...
...
@@ -174,28 +174,33 @@ int do_reset (cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[])
{
uint
pvr
;
uint
ver
;
unsigned
long
val
,
msr
;
pvr
=
get_pvr
();
ver
=
PVR_VER
(
pvr
);
if
(
ver
&
1
){
/* e500 v2 core has reset control register */
volatile
unsigned
int
*
rstcr
;
rstcr
=
(
volatile
unsigned
int
*
)(
CFG_IMMR
+
0xE00B0
);
*
rstcr
=
0x2
;
/* HRESET_REQ */
}
else
{
udelay
(
100
);
}
/*
* Fallthrough if the code above failed
* Initiate hard reset in debug control register DBCR0
* Make sure MSR[DE] = 1
*/
unsigned
long
val
,
msr
;
msr
=
mfmsr
();
msr
|=
MSR_DE
;
mtmsr
(
msr
);
msr
=
mfmsr
();
msr
|=
MSR_DE
;
mtmsr
(
msr
);
val
=
mfspr
(
DBCR0
);
val
|=
0x70000000
;
mtspr
(
DBCR0
,
val
);
val
=
mfspr
(
DBCR0
);
val
|=
0x70000000
;
mtspr
(
DBCR0
,
val
);
}
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