Skip to contentSkip to conversation

MX51: add structure to access System Reset Controller

PATCH New Stefano Babic 2 participants 4 messages Aug 20, 2010 – Aug 21, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MX51: add structure to access System Reset Controller

---
 arch/arm/include/asm/arch-mx51/imx-regs.h |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
arch/arm/include/asm/arch-mx51/imx-regs.h +10 -0
index 0e3bc2a..06f2720 100644
@@ -262,6 +262,16 @@ struct gpio_regs {
 	u32	gpio_dir;
 	u32	gpio_psr;
 };
+
+/* System Reset Controller (SRS) */
+struct src {
+	u32	scr;
+	u32	sbmr;
+	u32	srsr;
+	u32	reserved1[2];
+	u32	sisr;
+	u32	simr;
+};
 #endif /* __ASSEMBLER__*/
 
 #endif				/*  __ASM_ARCH_MXC_MX51_H__ */
Signature · 1 line
1.6.3.3
#1 lore raw

PATCH 1/1 MX51: add structure to access System Reset Controller

Hello.

Quoted 1 line · Stefano Babic

[...]

arch/arm/include/asm/arch-mx51/imx-regs.h struct gpio_regs { · line 266

Quoted 10 lines
arch/arm/include/asm/arch-mx51/imx-regs.h +2 -0
index 0e3bc2a..06f2720 100644
@@ -262,6 +262,16 @@ struct gpio_regs {
 	u32	gpio_dir;
 	u32	gpio_psr;
 };
+
+/* System Reset Controller (SRS) */

So, it's SRS or SRC?

arch/arm/include/asm/arch-mx51/imx-regs.h struct gpio_regs { · line 275

Quoted 9 lines
arch/arm/include/asm/arch-mx51/imx-regs.h +8 -0
+struct src {
+	u32	scr;
+	u32	sbmr;
+	u32	srsr;
+	u32	reserved1[2];
+	u32	sisr;
+	u32	simr;
+};
 #endif /* __ASSEMBLER__*/

WBR, Sergei

#2 lore raw

PATCH 1/1 MX51: add structure to access System Reset Controller

Quoted 2 lines · Sergei Shtylyov

Hello.

Hi Sergej,

Quoted 3 lines
Quoted 1 line

+/* System Reset Controller (SRS) */

So, it's SRS or SRC?

Thanks to point out. With srs (reset status) and src (reset controller) I have confused the names..

Best regards,
Stefano

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================
#3 lore raw

PATCH 4/16 MX51: add structure to access System Reset Controller

In reply to Stefano Babic
---
 arch/arm/include/asm/arch-mx51/imx-regs.h |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
arch/arm/include/asm/arch-mx51/imx-regs.h +10 -0
index 0e3bc2a..072ad0f 100644
@@ -262,6 +262,16 @@ struct gpio_regs {
 	u32	gpio_dir;
 	u32	gpio_psr;
 };
+
+/* System Reset Controller (SRC) */
+struct src {
+	u32	scr;
+	u32	sbmr;
+	u32	srsr;
+	u32	reserved1[2];
+	u32	sisr;
+	u32	simr;
+};
 #endif /* __ASSEMBLER__*/
 
 #endif				/*  __ASM_ARCH_MXC_MX51_H__ */
Signature · 1 line
1.6.3.3