From: Roger Meier Date: Mon, 4 Nov 2013 06:40:44 +0000 (+0100) Subject: at91: add defines for reset type X-Git-Tag: v2014.01-rc1~77^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c12f941bece9ed79efccfe9e4a9fd977da6975f9;p=platform%2Fkernel%2Fu-boot.git at91: add defines for reset type Signed-off-by: Roger Meier Acked-by: Bo Shen Reviewed-by: Heiko Schocher Cc: Andreas Bießmann Signed-off-by: Andreas Bießmann --- 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