Skip to contentSkip to conversation

: Setting MSR[DE] in do_reset

PATCH New urwithsughosh at gmail.com 1 participant 1 message Sep 24, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : 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.

---
 cpu/mpc85xx/cpu.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
cpu/mpc85xx/cpu.c +6 -1
index 08e0468..bbc5444 100644
@@ -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
 	 * Make sure MSR[DE] = 1
 	 */
-		unsigned long val;
+		unsigned long val, msr;
+
+		msr = mfmsr ();
+		msr |= MSR_DE;
+		mtmsr (msr);
+
 		val = mfspr(DBCR0);
 		val |= 0x70000000;
 		mtspr(DBCR0,val);
Signature · 1 line
1.4.4.4