2 * (C) Copyright 2007-2011
3 * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
4 * Tom Cubie <tangliang@allwinnertech.com>
6 * Configuration settings for the Allwinner A10-evb board.
8 * SPDX-License-Identifier: GPL-2.0+
11 #ifndef _SUNXI_TIMER_H_
12 #define _SUNXI_TIMER_H_
14 #define WDT_CTRL_RESTART (0x1 << 0)
15 #define WDT_CTRL_KEY (0x0a57 << 1)
16 #define WDT_MODE_EN (0x1 << 0)
17 #define WDT_MODE_RESET_EN (0x1 << 1)
21 #include <linux/types.h>
23 /* General purpose timer */
55 u32 yymmdd; /* 0x104 */
56 u32 hhmmss; /* 0x108 */
61 u32 ddhhmmss; /* 0x10c */
62 u32 hhmmss; /* 0x110 */
64 u32 irqen; /* 0x118 */
65 u32 irqsta; /* 0x11c */
68 /* Timer general purpose register */
73 struct sunxi_timer_reg {
74 u32 tirqen; /* 0x00 */
75 u32 tirqsta; /* 0x04 */
77 struct sunxi_timer timer[6]; /* We have 6 timers */
80 struct sunxi_wdog wdog;
82 struct sunxi_64cnt cnt64;
85 struct sunxi_alarm alarm;
86 struct sunxi_tgp tgp[4];
91 #endif /* __ASSEMBLY__ */