2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2012-08-05 16:07:21 +00:00
|
|
|
/*
|
2015-02-16 19:16:14 +00:00
|
|
|
* (C) Copyright 2012,2015 Stephen Warren
|
2012-08-05 16:07:21 +00:00
|
|
|
*/
|
|
|
|
|
2015-05-04 20:54:34 +00:00
|
|
|
#ifndef _BCM2835_WDOG_H
|
|
|
|
#define _BCM2835_WDOG_H
|
2012-08-05 16:07:21 +00:00
|
|
|
|
2019-11-19 15:01:03 +00:00
|
|
|
#include <asm/arch/base.h>
|
|
|
|
|
|
|
|
#define BCM2835_WDOG_PHYSADDR ({ BUG_ON(!rpi_bcm283x_base); \
|
|
|
|
rpi_bcm283x_base + 0x00100000; })
|
2012-08-05 16:07:21 +00:00
|
|
|
|
|
|
|
struct bcm2835_wdog_regs {
|
|
|
|
u32 unknown0[7];
|
|
|
|
u32 rstc;
|
2016-11-02 09:36:18 +00:00
|
|
|
u32 rsts;
|
2012-08-05 16:07:21 +00:00
|
|
|
u32 wdog;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define BCM2835_WDOG_PASSWORD 0x5a000000
|
|
|
|
|
|
|
|
#define BCM2835_WDOG_RSTC_WRCFG_MASK 0x00000030
|
|
|
|
#define BCM2835_WDOG_RSTC_WRCFG_FULL_RESET 0x00000020
|
|
|
|
|
|
|
|
#define BCM2835_WDOG_WDOG_TIMEOUT_MASK 0x0000ffff
|
|
|
|
|
|
|
|
#endif
|