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