summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorRoger Meier <r.meier@siemens.com>2013-11-04 07:40:44 +0100
committerAndreas Bießmann <andreas.devel@googlemail.com>2013-11-04 20:32:39 +0100
commitc12f941bece9ed79efccfe9e4a9fd977da6975f9 (patch)
treee6d75f9c6181645864814b6e29732d811f4918d4 /arch/arm
parentf89a6ee3557bc67f20f75e64d5eb62fde58fd3ba (diff)
downloadu-boot-imx-c12f941bece9ed79efccfe9e4a9fd977da6975f9.zip
u-boot-imx-c12f941bece9ed79efccfe9e4a9fd977da6975f9.tar.gz
u-boot-imx-c12f941bece9ed79efccfe9e4a9fd977da6975f9.tar.bz2
at91: add defines for reset type
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>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/include/asm/arch-at91/at91_rstc.h7
1 files changed, 7 insertions, 0 deletions
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