diff options
| author | Stephen Warren <[email protected]> | 2013-03-27 18:43:23 +0000 |
|---|---|---|
| committer | Albert ARIBAUD <[email protected]> | 2013-04-04 08:14:54 +0200 |
| commit | 5eaa215607c8668bfa6a7183407eba8fec63d648 (patch) | |
| tree | 84315e219ce066489ef830231a595f2427470dde /arch/arm/include | |
| parent | 009d75ccc11d27b9a083375a88bb93cb746b4800 (diff) | |
ARM: bcm2835: fix get_timer() to return ms
Apparently, CONFIG_SYS_HZ must be 1000. Change this, and fix the timer
driver to conform to this.
Have the timer implementation export a custom API get_timer_us() for use
by the BCM2835 MMC API, which needs us resolution for a HW workaround.
Signed-off-by: Stephen Warren <[email protected]>
Diffstat (limited to 'arch/arm/include')
| -rw-r--r-- | arch/arm/include/asm/arch-bcm2835/timer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-bcm2835/timer.h b/arch/arm/include/asm/arch-bcm2835/timer.h index 30c70e03df4..c2001b6f932 100644 --- a/arch/arm/include/asm/arch-bcm2835/timer.h +++ b/arch/arm/include/asm/arch-bcm2835/timer.h @@ -34,4 +34,6 @@ struct bcm2835_timer_regs { #define BCM2835_TIMER_CS_M1 (1 << 1) #define BCM2835_TIMER_CS_M0 (1 << 0) +extern ulong get_timer_us(ulong base); + #endif |
