3 * Chen-Yu Tsai <wens@csie.org>
5 * Watchdog register definitions
7 * SPDX-License-Identifier: GPL-2.0+
10 #ifndef _SUNXI_WATCHDOG_H_
11 #define _SUNXI_WATCHDOG_H_
13 #define WDT_CTRL_RESTART (0x1 << 0)
14 #define WDT_CTRL_KEY (0x0a57 << 1)
16 #if defined(CONFIG_MACH_SUN4I) || defined(CONFIG_MACH_SUN5I) || defined(CONFIG_MACH_SUN7I)
18 #define WDT_MODE_EN (0x1 << 0)
19 #define WDT_MODE_RESET_EN (0x1 << 1)
29 #define WDT_CFG_RESET (0x1)
30 #define WDT_MODE_EN (0x1)
33 u32 irq_en; /* 0x00 */
34 u32 irq_sta; /* 0x04 */
44 #endif /* _SUNXI_WATCHDOG_H_ */