Prepare v2023.10
[platform/kernel/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 #include <asm/arch/base.h>
10
11 #define BCM2835_WDOG_PHYSADDR ({ BUG_ON(!rpi_bcm283x_base); \
12                                  rpi_bcm283x_base + 0x00100000; })
13
14 struct bcm2835_wdog_regs {
15         u32 unknown0[7];
16         u32 rstc;
17         u32 rsts;
18         u32 wdog;
19 };
20
21 #define BCM2835_WDOG_PASSWORD                   0x5a000000
22
23 #define BCM2835_WDOG_RSTC_WRCFG_MASK            0x00000030
24 #define BCM2835_WDOG_RSTC_WRCFG_FULL_RESET      0x00000020
25
26 #define BCM2835_WDOG_WDOG_TIMEOUT_MASK          0x0000ffff
27
28 #endif