]> git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/include/asm/arch-armv7/systimer.h
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / arch / arm / include / asm / arch-armv7 / systimer.h
1 /*
2 * (C) Copyright 2010 Linaro
3 * Matt Waddel, <matt.waddel@linaro.org>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7 #ifndef _SYSTIMER_H_
8 #define _SYSTIMER_H_
9
10 /* AMBA timer register base address */
11 #define SYSTIMER_BASE 0x10011000
12
13 #define SYSHZ_CLOCK 1000000 /* Timers -> 1Mhz */
14 #define SYSTIMER_RELOAD 0xFFFFFFFF
15 #define SYSTIMER_EN (1 << 7)
16 #define SYSTIMER_32BIT (1 << 1)
17
18 struct systimer {
19 u32 timer0load; /* 0x00 */
20 u32 timer0value;
21 u32 timer0control;
22 u32 timer0intclr;
23 u32 timer0ris;
24 u32 timer0mis;
25 u32 timer0bgload;
26 u32 timer1load; /* 0x20 */
27 u32 timer1value;
28 u32 timer1control;
29 u32 timer1intclr;
30 u32 timer1ris;
31 u32 timer1mis;
32 u32 timer1bgload;
33 };
34 #endif /* _SYSTIMER_H_ */