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-02-16 19:16:13 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0
|
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
|
|
|
|
2016-03-17 03:40:56 +00:00
|
|
|
#ifndef CONFIG_BCM2835
|
2015-02-16 19:16:14 +00:00
|
|
|
#define BCM2835_WDOG_PHYSADDR 0x3f100000
|
|
|
|
#else
|
2012-08-05 16:07:21 +00:00
|
|
|
#define BCM2835_WDOG_PHYSADDR 0x20100000
|
2015-02-16 19:16:14 +00:00
|
|
|
#endif
|
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
|