diff options
author | Graeme Russ <graeme.russ@gmail.com> | 2011-07-15 02:19:44 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-07-26 14:53:30 +0200 |
commit | 4769be21cca65f1e7bef27bc024d886842bc6bad (patch) | |
tree | 47053c2ed79e6e43b1b6fd49b585fe53028ff6a5 /arch/sh | |
parent | e110c4fe44edc34addee4839a1d20c0fbb076ad4 (diff) | |
download | u-boot-4769be21cca65f1e7bef27bc024d886842bc6bad.tar.gz u-boot-4769be21cca65f1e7bef27bc024d886842bc6bad.tar.xz u-boot-4769be21cca65f1e7bef27bc024d886842bc6bad.zip |
Timer: Remove reset_timer() for non-Nios2 arches
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/lib/time.c | 7 | ||||
-rw-r--r-- | arch/sh/lib/time_sh2.c | 8 |
2 files changed, 0 insertions, 15 deletions
diff --git a/arch/sh/lib/time.c b/arch/sh/lib/time.c index c4bfc8638c..c70baedbf1 100644 --- a/arch/sh/lib/time.c +++ b/arch/sh/lib/time.c @@ -139,13 +139,6 @@ unsigned long get_timer (unsigned long base) return tick_to_time(get_ticks()) - base; } -void reset_timer (void) -{ - tmu_timer_stop(0); - writel(0, TCNT0); - tmu_timer_start(0); -} - unsigned long get_tbclk (void) { return timer_freq; diff --git a/arch/sh/lib/time_sh2.c b/arch/sh/lib/time_sh2.c index a5c838bff0..58271186e2 100644 --- a/arch/sh/lib/time_sh2.c +++ b/arch/sh/lib/time_sh2.c @@ -90,14 +90,6 @@ ulong get_timer(ulong base) return (get_usec() / 1000) - base; } -void reset_timer(void) -{ - cmt_timer_stop(0); - writew(CMT_TIMER_RESET, CMCOR_0); - cmt0_timer = 0; - cmt_timer_start(0); -} - void __udelay(unsigned long usec) { unsigned long end = get_usec() + usec; |