2 * (C) Copyright 2012 Stephen Warren
4 * SPDX-License-Identifier: GPL-2.0
7 #ifndef _BCM2835_TIMER_H
8 #define _BCM2835_TIMER_H
10 #define BCM2835_TIMER_PHYSADDR 0x20003000
12 struct bcm2835_timer_regs {
22 #define BCM2835_TIMER_CS_M3 (1 << 3)
23 #define BCM2835_TIMER_CS_M2 (1 << 2)
24 #define BCM2835_TIMER_CS_M1 (1 << 1)
25 #define BCM2835_TIMER_CS_M0 (1 << 0)
27 extern ulong get_timer_us(ulong base);