Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Stephen Warren | 45b8ae6 | 2012-08-05 16:07:21 +0000 | [diff] [blame] | 2 | /* |
Stephen Warren | 8780f22 | 2015-02-16 12:16:14 -0700 | [diff] [blame] | 3 | * (C) Copyright 2012,2015 Stephen Warren |
Stephen Warren | 45b8ae6 | 2012-08-05 16:07:21 +0000 | [diff] [blame] | 4 | */ |
| 5 | |
Marek Vasut | 1a66a5f | 2015-05-04 22:54:34 +0200 | [diff] [blame] | 6 | #ifndef _BCM2835_WDOG_H |
| 7 | #define _BCM2835_WDOG_H |
Stephen Warren | 45b8ae6 | 2012-08-05 16:07:21 +0000 | [diff] [blame] | 8 | |
Matthias Brugger | 2c68dee | 2019-11-19 16:01:03 +0100 | [diff] [blame] | 9 | #include <asm/arch/base.h> |
| 10 | |
Dmitry Malkin | b8c537c | 2024-01-23 10:07:54 +0200 | [diff] [blame] | 11 | #define BCM2835_WDOG_PHYSADDR rpi_wdog_base |
Stephen Warren | 45b8ae6 | 2012-08-05 16:07:21 +0000 | [diff] [blame] | 12 | |
| 13 | struct bcm2835_wdog_regs { |
| 14 | u32 unknown0[7]; |
| 15 | u32 rstc; |
Alexander Graf | 3fce534 | 2016-11-02 10:36:18 +0100 | [diff] [blame] | 16 | u32 rsts; |
Stephen Warren | 45b8ae6 | 2012-08-05 16:07:21 +0000 | [diff] [blame] | 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 |