ARM: bcm283x: Add BCM283x_BASE define
[oweals/u-boot.git] / arch / arm / mach-bcm283x / include / mach / wdog.h
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 #define BCM2835_WDOG_PHYSADDR   (CONFIG_BCM283x_BASE + 0x00100000)
10
11 struct bcm2835_wdog_regs {
12         u32 unknown0[7];
13         u32 rstc;
14         u32 rsts;
15         u32 wdog;
16 };
17
18 #define BCM2835_WDOG_PASSWORD                   0x5a000000
19
20 #define BCM2835_WDOG_RSTC_WRCFG_MASK            0x00000030
21 #define BCM2835_WDOG_RSTC_WRCFG_FULL_RESET      0x00000020
22
23 #define BCM2835_WDOG_WDOG_TIMEOUT_MASK          0x0000ffff
24
25 #endif