Patchwork [U-Boot] at91: add defines for reset type

login
register
mail settings
Submitter Meier, Roger
Date Sept. 10, 2013, 7:20 a.m.
Message ID <7B43E01F5906F9448BF8BAACD5D26B3803ACBC@DENBGAT9EH2MSX.ww902.siemens.net>
Download mbox | patch
Permalink /patch/273773/
State Superseded
Delegated to: Andreas BieƟmann
Headers show

Comments

Meier, Roger - Sept. 10, 2013, 7:20 a.m.
Signed-off-by: Roger Meier <r.meier@siemens.com>
---
 arch/arm/include/asm/arch-at91/at91_rstc.h |    7 +++++++
 1 file changed, 7 insertions(+)

Patch

diff --git a/arch/arm/include/asm/arch-at91/at91_rstc.h b/arch/arm/include/asm/arch-at91/at91_rstc.h
index 423cf51..a942342 100644
--- a/arch/arm/include/asm/arch-at91/at91_rstc.h
+++ b/arch/arm/include/asm/arch-at91/at91_rstc.h
@@ -38,4 +38,11 @@  typedef struct at91_rstc {
 
 #define AT91_RSTC_SR_NRSTL	0x00010000
 
+#define AT91_RSTC_RSTTYP		(7 << 8)	/* Reset Type */
+#define AT91_RSTC_RSTTYP_GENERAL	(0 << 8)
+#define AT91_RSTC_RSTTYP_WAKEUP	(1 << 8)
+#define AT91_RSTC_RSTTYP_WATCHDOG	(2 << 8)
+#define AT91_RSTC_RSTTYP_SOFTWARE	(3 << 8)
+#define AT91_RSTC_RSTTYP_USER		(4 << 8)
+
 #endif