2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2010-02-03 21:47:35 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2009 Jens Scharsig (js_at_ng@scharsoft.de)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AT91_ST_H
|
|
|
|
#define AT91_ST_H
|
|
|
|
|
|
|
|
typedef struct at91_st {
|
|
|
|
|
|
|
|
u32 cr;
|
|
|
|
u32 pimr;
|
|
|
|
u32 wdmr;
|
|
|
|
u32 rtmr;
|
|
|
|
u32 sr;
|
|
|
|
u32 ier;
|
|
|
|
u32 idr;
|
|
|
|
u32 imr;
|
|
|
|
u32 rtar;
|
|
|
|
u32 crtr;
|
2010-12-22 01:16:47 +00:00
|
|
|
} at91_st_t ;
|
2010-02-03 21:47:35 +00:00
|
|
|
|
|
|
|
#define AT91_ST_CR_WDRST 1
|
|
|
|
|
|
|
|
#define AT91_ST_WDMR_WDV(x) (x & 0xFFFF)
|
|
|
|
#define AT91_ST_WDMR_RSTEN 0x00010000
|
2021-09-27 15:42:39 +00:00
|
|
|
#define AT91_ST_WDMR_EXTEN 0x00020000
|
2010-02-03 21:47:35 +00:00
|
|
|
|
|
|
|
#endif
|