1 /* SPDX-License-Identifier: GPL-2.0 */
3 * (C) Copyright 2012,2015 Stephen Warren
6 #ifndef _BCM2835_TIMER_H
7 #define _BCM2835_TIMER_H
10 #define BCM2835_TIMER_PHYSADDR 0x3f003000
12 #define BCM2835_TIMER_PHYSADDR 0x20003000
15 #define BCM2835_TIMER_CS_M3 (1 << 3)
16 #define BCM2835_TIMER_CS_M2 (1 << 2)
17 #define BCM2835_TIMER_CS_M1 (1 << 1)
18 #define BCM2835_TIMER_CS_M0 (1 << 0)
21 #include <linux/types.h>
23 struct bcm2835_timer_regs {
33 extern ulong get_timer_us(ulong base);