Thread (43 messages) 43 messages, 8 authors, 2010-04-28

Re: [PATCH v3 02/11] powerpc/mpc5121: Add machine restart support

From: Grant Likely <hidden>
Date: 2010-02-10 02:33:09

On Fri, Feb 5, 2010 at 6:42 AM, Anatolij Gustschin [off-list ref] wrote:
Add reset module registers representation and
machine restart callback for mpc5121 platform.

Signed-off-by: Piotr Ziecik <redacted>
Signed-off-by: Wolfgang Denk <redacted>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Grant Likely <redacted>
Cc: John Rigby <redacted>
---
Changes since v2:
=A0- call mpc512x_restart_init() explicitely from platform
=A0 init code

Changes since v1:
=A0- use 'struct mpc512x_reset_module *' type for 'reset_module_base'
=A0- remove empty line
=A0- remove leftover colon and use pr_err() instead of printk.

=A0arch/powerpc/include/asm/mpc5xxx.h =A0 =A0 =A0 =A0 =A0 =A0| =A0 14 +++=
++++++-
=A0arch/powerpc/platforms/512x/mpc5121_ads.c =A0 =A0 | =A0 =A01 +
=A0arch/powerpc/platforms/512x/mpc5121_generic.c | =A0 =A01 +
=A0arch/powerpc/platforms/512x/mpc512x.h =A0 =A0 =A0 =A0 | =A0 =A01 +
=A0arch/powerpc/platforms/512x/mpc512x_shared.c =A0| =A0 34 +++++++++++++=
++++++++++++
quoted hunk ↗ jump to hunk
=A05 files changed, 50 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/include/asm/mpc5xxx.h b/arch/powerpc/include/as=
m/mpc5xxx.h
quoted hunk ↗ jump to hunk
index 5ce9c5f..0004986 100644
--- a/arch/powerpc/include/asm/mpc5xxx.h
+++ b/arch/powerpc/include/asm/mpc5xxx.h
@@ -18,5 +18,17 @@
=A0extern unsigned long mpc5xxx_get_bus_frequency(struct device_node *nod=
e);
-#endif /* __ASM_POWERPC_MPC5xxx_H__ */
+/* MPC512x Reset module registers */
+struct mpc512x_reset_module {
+ =A0 =A0 =A0 u32 =A0 =A0 rcwlr; =A0/* Reset Configuration Word Low Regis=
ter */
+ =A0 =A0 =A0 u32 =A0 =A0 rcwhr; =A0/* Reset Configuration Word High Regi=
ster */
+ =A0 =A0 =A0 u32 =A0 =A0 reserved1;
+ =A0 =A0 =A0 u32 =A0 =A0 reserved2;
+ =A0 =A0 =A0 u32 =A0 =A0 rsr; =A0 =A0/* Reset Status Register */
+ =A0 =A0 =A0 u32 =A0 =A0 rmr; =A0 =A0/* Reset Mode Register */
+ =A0 =A0 =A0 u32 =A0 =A0 rpr; =A0 =A0/* Reset Protection Register */
+ =A0 =A0 =A0 u32 =A0 =A0 rcr; =A0 =A0/* Reset Control Register */
+ =A0 =A0 =A0 u32 =A0 =A0 rcer; =A0 /* Reset Control Enable Register */
+};
This isn't useful for 5200.  Create a new file.
arch/powerpc/include/asm/mpc5121.h

g.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help