xref: /openbmc/u-boot/arch/arm/mach-at91/include/mach/at91_st.h (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2009 Jens Scharsig (js_at_ng@scharsoft.de)
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;
21 } at91_st_t ;
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
30