Skip to content
Snippets Groups Projects
Commit df90968b authored by urwithsughosh@gmail.com's avatar urwithsughosh@gmail.com Committed by Andrew Fleming-AFLEMING
Browse files

Setting MSR[DE] in do_reset


Hello,
   This patch ensures the soft reset of the board for the 85xx boards
   by setting the MSR[DE] in the do_reset function.

Signed-off-by: default avatarSughosh Ganu <urwithsughosh@gmail.com>
parent 1e701e70
Branches
Tags
No related merge requests found
...@@ -163,7 +163,12 @@ int do_reset (cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[]) ...@@ -163,7 +163,12 @@ int do_reset (cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[])
* Initiate hard reset in debug control register DBCR0 * Initiate hard reset in debug control register DBCR0
* Make sure MSR[DE] = 1 * Make sure MSR[DE] = 1
*/ */
unsigned long val; unsigned long val, msr;
msr = mfmsr ();
msr |= MSR_DE;
mtmsr (msr);
val = mfspr(DBCR0); val = mfspr(DBCR0);
val |= 0x70000000; val |= 0x70000000;
mtspr(DBCR0,val); mtspr(DBCR0,val);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment