blob: b1ee1472e5332991da2fa6caf4b65ec90f23ab1d [file] [log] [blame]
Jens Scharsig9bbaae32010-02-03 22:47:35 +01001/*
2 * Copyright (C) 2009 Jens Scharsig (js_at_ng@scharsoft.de)
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Jens Scharsig9bbaae32010-02-03 22:47:35 +01005 */
6
7#ifndef AT91_ST_H
8#define AT91_ST_H
9
10typedef struct at91_st {
11
12 u32 cr;
13 u32 pimr;
14 u32 wdmr;
15 u32 rtmr;
16 u32 sr;
17 u32 ier;
18 u32 idr;
19 u32 imr;
20 u32 rtar;
21 u32 crtr;
Jens Scharsigdb09ccd2010-12-22 01:16:47 +000022} at91_st_t ;
Jens Scharsig9bbaae32010-02-03 22:47:35 +010023
24#define AT91_ST_CR_WDRST 1
25
26#define AT91_ST_WDMR_WDV(x) (x & 0xFFFF)
27#define AT91_ST_WDMR_RSTEN 0x00010000
28#define AT91_ST_WDMR_EXTEN 0x00020000
29
30#endif