[PATCH] Fix MPC8548CDS rebooting procedure

STALE7464d

2 messages, 2 authors, 2006-03-08 · open the first message on its own page

[PATCH] Fix MPC8548CDS rebooting procedure

From: Haruki Dai-r35557 <hidden>
Date: 2006-03-08 17:22:52

This patch fixes the MPC8548 CDS rebooting procedure.
Without this patche, issuing reboot from shell doesn't reboot the
machine.=20

Signed-off-by: Dai Haruki <redacted>

---

 arch/ppc/syslib/ppc85xx_setup.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

8f095006923385c3546165b0e10d73d3e057c120
diff --git a/arch/ppc/syslib/ppc85xx_setup.c
b/arch/ppc/syslib/ppc85xx_setup.c
index e4dda43..45b1b2b 100644
--- a/arch/ppc/syslib/ppc85xx_setup.c
+++ b/arch/ppc/syslib/ppc85xx_setup.c
@@ -115,6 +115,11 @@ mpc85xx_early_serial_map(void)
 void
 mpc85xx_restart(char *cmd)
 {
+#ifdef CONFIG_MPC8548
+	volatile unsigned int *rstcr;
+	u32 *pMem =3D (u32*) ioremap((BOARD_CCSRBAR + 0xe00b0),0x100);
+	*pMem =3D 0x2; /* Set HRESET_REQ flag */
+#endif
 	local_irq_disable();
 	abort();
 }
--=20
1.2.4

Re: [PATCH] Fix MPC8548CDS rebooting procedure

From: Kumar Gala <hidden>
Date: 2006-03-08 18:32:56

On Mar 8, 2006, at 11:22 AM, Haruki Dai-r35557 wrote:
This patch fixes the MPC8548 CDS rebooting procedure.
Without this patche, issuing reboot from shell doesn't reboot the
machine.

Signed-off-by: Dai Haruki <redacted>
Dai, I'm avoid taking patches for 85xx that effect new  
functionality.  If you want change this to work with arch/powerpc and  
make it a run time check for 8548.

- kumar
quoted hunk
---

 arch/ppc/syslib/ppc85xx_setup.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

8f095006923385c3546165b0e10d73d3e057c120
diff --git a/arch/ppc/syslib/ppc85xx_setup.c
b/arch/ppc/syslib/ppc85xx_setup.c
index e4dda43..45b1b2b 100644
--- a/arch/ppc/syslib/ppc85xx_setup.c
+++ b/arch/ppc/syslib/ppc85xx_setup.c
@@ -115,6 +115,11 @@ mpc85xx_early_serial_map(void)
 void
 mpc85xx_restart(char *cmd)
 {
+#ifdef CONFIG_MPC8548
+	volatile unsigned int *rstcr;
+	u32 *pMem = (u32*) ioremap((BOARD_CCSRBAR + 0xe00b0),0x100);
+	*pMem = 0x2; /* Set HRESET_REQ flag */
+#endif
 	local_irq_disable();
 	abort();
 }
-- 
1.2.4
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help