diff options
author | Stefano Babic <sbabic@denx.de> | 2012-02-04 13:02:01 +0100 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-02-27 21:19:23 +0100 |
commit | 60ebcffbf1e2a5def29398a9400b423cb1e00976 (patch) | |
tree | a141c18eed35c65a231b0a22cfb78ba60e3dcb33 /arch/arm | |
parent | 31bb50f815c7684f57b93720dbbbf37da19c62d4 (diff) | |
download | u-boot-imx-60ebcffbf1e2a5def29398a9400b423cb1e00976.zip u-boot-imx-60ebcffbf1e2a5def29398a9400b423cb1e00976.tar.gz u-boot-imx-60ebcffbf1e2a5def29398a9400b423cb1e00976.tar.bz2 |
MX31: add missing get_tbclk()
Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Helmut Raiger <helmut.raiger@hale.at>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/cpu/arm1136/mx31/timer.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm1136/mx31/timer.c b/arch/arm/cpu/arm1136/mx31/timer.c index f494440..72081a8 100644 --- a/arch/arm/cpu/arm1136/mx31/timer.c +++ b/arch/arm/cpu/arm1136/mx31/timer.c @@ -153,6 +153,15 @@ void __udelay(unsigned long usec) /*NOP*/; } +/* + * This function is derived from PowerPC code (timebase clock frequency). + * On ARM it returns the number of timer ticks per second. + */ +ulong get_tbclk(void) +{ + return CONFIG_MX31_CLK32; +} + void reset_cpu(ulong addr) { struct wdog_regs *wdog = (struct wdog_regs *)WDOG_BASE; |