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_
16 #include <linux/types.h>
17 #include <asm/arch/watchdog.h>
19 /* General purpose timer */
45 u32 yymmdd; /* 0x104 */
46 u32 hhmmss; /* 0x108 */
51 u32 ddhhmmss; /* 0x10c */
52 u32 hhmmss; /* 0x110 */
54 u32 irqen; /* 0x118 */
55 u32 irqsta; /* 0x11c */
58 /* Timer general purpose register */
63 struct sunxi_timer_reg {
64 u32 tirqen; /* 0x00 */
65 u32 tirqsta; /* 0x04 */
67 struct sunxi_timer timer[6]; /* We have 6 timers */
70 #ifdef CONFIG_SUNXI_GEN_SUN4I
71 struct sunxi_wdog wdog; /* 0x90 */
72 /* XXX the following is not accurate for sun5i/sun7i */
73 struct sunxi_64cnt cnt64; /* 0xa0 */
76 struct sunxi_alarm alarm;
77 struct sunxi_tgp tgp[4];
81 #ifdef CONFIG_SUNXI_GEN_SUN6I
83 struct sunxi_wdog wdog[5]; /* We have 5 watchdogs */
87 #endif /* __ASSEMBLY__ */