blob: f91cec98c935239340c1694e24eb5b1a719f6dbf [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
Wolfgang Denk62fb2b42021-09-27 17:42:39 +020027#define AT91_ST_WDMR_EXTEN 0x00020000
Jens Scharsig9bbaae32010-02-03 22:47:35 +010028
29#endif