From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bo Shen Date: Mon, 28 Oct 2013 13:05:19 +0800 Subject: [U-Boot] [PATCH v1 1/3] at91: add defines for reset type In-Reply-To: <1382421100-28378-2-git-send-email-hs@denx.de> References: <1382421100-28378-1-git-send-email-hs@denx.de> <1382421100-28378-2-git-send-email-hs@denx.de> Message-ID: <526DF08F.6030901@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Heiko Schocher, On 10/22/2013 13:51, Heiko Schocher wrote: > From: Roger Meier > > Signed-off-by: Roger Meier > Reviewed-by: Heiko Schocher > Cc: Andreas Bie?mann Acked-by: Bo Shen > --- > arch/arm/include/asm/arch-at91/at91_rstc.h | 7 +++++++ > 1 file changed, 7 insertions(+) > > 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 > Best Regards, Bo Shen