]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/mach-bcm283x/include/mach/timer.h
2 * (C) Copyright 2012,2015 Stephen Warren
4 * SPDX-License-Identifier: GPL-2.0
7 #ifndef _BCM2835_TIMER_H
8 #define _BCM2835_TIMER_H
11 #define BCM2835_TIMER_PHYSADDR 0x3f003000
13 #define BCM2835_TIMER_PHYSADDR 0x20003000
16 #define BCM2835_TIMER_CS_M3 (1 << 3)
17 #define BCM2835_TIMER_CS_M2 (1 << 2)
18 #define BCM2835_TIMER_CS_M1 (1 << 1)
19 #define BCM2835_TIMER_CS_M0 (1 << 0)
22 #include <linux/types.h>
24 struct bcm2835_timer_regs
{
34 extern ulong
get_timer_us(ulong base
);