1 /*
2  * (C) Copyright 2012,2015 Stephen Warren
3  *
4  * SPDX-License-Identifier:	GPL-2.0
5  */
6 
7 #ifndef _BCM2835_WDOG_H
8 #define _BCM2835_WDOG_H
9 
10 #ifndef CONFIG_BCM2835
11 #define BCM2835_WDOG_PHYSADDR			0x3f100000
12 #else
13 #define BCM2835_WDOG_PHYSADDR			0x20100000
14 #endif
15 
16 struct bcm2835_wdog_regs {
17 	u32 unknown0[7];
18 	u32 rstc;
19 	u32 unknown1;
20 	u32 wdog;
21 };
22 
23 #define BCM2835_WDOG_PASSWORD			0x5a000000
24 
25 #define BCM2835_WDOG_RSTC_WRCFG_MASK		0x00000030
26 #define BCM2835_WDOG_RSTC_WRCFG_FULL_RESET	0x00000020
27 
28 #define BCM2835_WDOG_WDOG_TIMEOUT_MASK		0x0000ffff
29 
30 #endif
31