[U-Boot] [PATCH v2 1/4] at91: add defines for reset type
Andreas Bießmann
andreas.devel at googlemail.com
Mon Nov 4 09:16:30 CET 2013
Hi Heiko,
On 11/04/2013 07:40 AM, Heiko Schocher wrote:
> From: Roger Meier <r.meier at siemens.com>
>
> Signed-off-by: Roger Meier <r.meier at siemens.com>
> Acked-by: Bo Shen <voice.shen at atmel.com>
> Reviewed-by: Heiko Schocher <hs at denx.de>
> Cc: Andreas Bießmann <andreas.devel at googlemail.com>
>
> ---
> changes for v2:
> - add Acked-by from 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
>
... looks good to me.
Best regards
Andreas Bießmann
More information about the U-Boot
mailing list