blob: e3fa16ffab580c22467b133d4a22732b46477cec [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Matt Waddel35c638b2010-10-07 15:48:45 -06002/*
3 * (C) Copyright 2010
4 * Matt Waddel, <matt.waddel@linaro.org>
Matt Waddel35c638b2010-10-07 15:48:45 -06005 */
6#ifndef _WDT_H_
7#define _WDT_H_
8
9/* Watchdog timer (SP805) register base address */
10#define WDT_BASE 0x100E5000
11
12#define WDT_EN 0x2
13#define WDT_RESET_LOAD 0x0
14
15struct wdt {
16 u32 wdogload; /* 0x000 */
17 u32 wdogvalue;
18 u32 wdogcontrol;
19 u32 wdogintclr;
20 u32 wdogris;
21 u32 wdogmis;
22 u32 res1[0x2F9];
23 u32 wdoglock; /* 0xC00 */
24 u32 res2[0xBE];
25 u32 wdogitcr; /* 0xF00 */
26 u32 wdogitop;
27 u32 res3[0x35];
28 u32 wdogperiphid0; /* 0xFE0 */
29 u32 wdogperiphid1;
30 u32 wdogperiphid2;
31 u32 wdogperiphid3;
32 u32 wdogpcellid0;
33 u32 wdogpcellid1;
34 u32 wdogpcellid2;
35 u32 wdogpcellid3;
36};
37
38#endif /* _WDT_H_ */