]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/arm/include/asm/arch-bcm2835/timer.h
bcm2835/rpi: add SPDX license tags for some files
[people/ms/u-boot.git] / arch / arm / include / asm / arch-bcm2835 / timer.h
CommitLineData
efad6cf8
SW
1/*
2 * (C) Copyright 2012 Stephen Warren
3 *
a033171b 4 * SPDX-License-Identifier: GPL-2.0
efad6cf8
SW
5 */
6
7#ifndef _BCM2835_TIMER_H
8#define _BCM2835_TIMER_H
9
10#define BCM2835_TIMER_PHYSADDR 0x20003000
11
12struct bcm2835_timer_regs {
13 u32 cs;
14 u32 clo;
15 u32 chi;
16 u32 c0;
17 u32 c1;
18 u32 c2;
19 u32 c3;
20};
21
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)
26
5eaa2156
SW
27extern ulong get_timer_us(ulong base);
28
efad6cf8 29#endif