rpi5: Use devicetree as alternative way to read IO base addresses
[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   rpi_wdog_base
12
13 struct bcm2835_wdog_regs {
14         u32 unknown0[7];
15         u32 rstc;
16         u32 rsts;
17         u32 wdog;
18 };
19
20 #define BCM2835_WDOG_PASSWORD                   0x5a000000
21
22 #define BCM2835_WDOG_RSTC_WRCFG_MASK            0x00000030
23 #define BCM2835_WDOG_RSTC_WRCFG_FULL_RESET      0x00000020
24
25 #define BCM2835_WDOG_WDOG_TIMEOUT_MASK          0x0000ffff
26
27 #endif