]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
at91: add defines for reset type
authorRoger Meier <r.meier@siemens.com>
Mon, 4 Nov 2013 06:40:44 +0000 (07:40 +0100)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Mon, 4 Nov 2013 19:32:39 +0000 (20:32 +0100)
Signed-off-by: Roger Meier <r.meier@siemens.com>
Acked-by: Bo Shen <voice.shen@atmel.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Cc: Andreas Bießmann <andreas.devel@googlemail.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
arch/arm/include/asm/arch-at91/at91_rstc.h

index 423cf515d9789b6f40a4236e7b64bd4e86557876..a9423428e75344e290213c4ef597512d17520297 100644 (file)
@@ -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