blob: ec4658a391775de529b75ff2fbbd84b2e6dcb2b4 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Jens Scharsig9bbaae32010-02-03 22:47:35 +01002/*
3 * Copyright (C) 2009 Jens Scharsig (js_at_ng@scharsoft.de)
Jens Scharsig9bbaae32010-02-03 22:47:35 +01004 */
5
6#ifndef AT91_ST_H
7#define AT91_ST_H
8
9typedef struct at91_st {
10
11 u32 cr;
12 u32 pimr;
13 u32 wdmr;
14 u32 rtmr;
15 u32 sr;
16 u32 ier;
17 u32 idr;
18 u32 imr;
19 u32 rtar;
20 u32 crtr;
Jens Scharsigdb09ccd2010-12-22 01:16:47 +000021} at91_st_t ;
Jens Scharsig9bbaae32010-02-03 22:47:35 +010022
23#define AT91_ST_CR_WDRST 1
24
25#define AT91_ST_WDMR_WDV(x) (x & 0xFFFF)
26#define AT91_ST_WDMR_RSTEN 0x00010000
27#define AT91_ST_WDMR_EXTEN 0x00020000
28
29#endif