Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Jens Scharsig | 9bbaae3 | 2010-02-03 22:47:35 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2009 Jens Scharsig (js_at_ng@scharsoft.de) |
Jens Scharsig | 9bbaae3 | 2010-02-03 22:47:35 +0100 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef AT91_ST_H |
| 7 | #define AT91_ST_H |
| 8 | |
| 9 | typedef 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 Scharsig | db09ccd | 2010-12-22 01:16:47 +0000 | [diff] [blame] | 21 | } at91_st_t ; |
Jens Scharsig | 9bbaae3 | 2010-02-03 22:47:35 +0100 | [diff] [blame] | 22 | |
| 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 |