1 /* SPDX-License-Identifier: GPL-2.0 */
3 * (C) Copyright 2012,2015 Stephen Warren
6 #ifndef _BCM2835_TIMER_H
7 #define _BCM2835_TIMER_H
9 #define BCM2835_TIMER_PHYSADDR (CONFIG_BCM283x_BASE + 0x00003000)
11 #define BCM2835_TIMER_CS_M3 (1 << 3)
12 #define BCM2835_TIMER_CS_M2 (1 << 2)
13 #define BCM2835_TIMER_CS_M1 (1 << 1)
14 #define BCM2835_TIMER_CS_M0 (1 << 0)
17 #include <linux/types.h>
19 struct bcm2835_timer_regs {
29 extern ulong get_timer_us(ulong base);