Jens Scharsig | 9bbaae3 | 2010-02-03 22:47:35 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2009 Jens Scharsig (js_at_ng@scharsoft.de) |
| 3 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Jens Scharsig | 9bbaae3 | 2010-02-03 22:47:35 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef AT91_ST_H |
| 8 | #define AT91_ST_H |
| 9 | |
| 10 | typedef 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 Scharsig | db09ccd | 2010-12-22 01:16:47 +0000 | [diff] [blame] | 22 | } at91_st_t ; |
Jens Scharsig | 9bbaae3 | 2010-02-03 22:47:35 +0100 | [diff] [blame] | 23 | |
| 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 |