summaryrefslogtreecommitdiff
path: root/arch/sh/lib
diff options
context:
space:
mode:
authorGraeme Russ <graeme.russ@gmail.com>2011-07-15 02:19:44 +0000
committerWolfgang Denk <wd@denx.de>2011-07-26 14:53:30 +0200
commit4769be21cca65f1e7bef27bc024d886842bc6bad (patch)
tree47053c2ed79e6e43b1b6fd49b585fe53028ff6a5 /arch/sh/lib
parente110c4fe44edc34addee4839a1d20c0fbb076ad4 (diff)
downloadu-boot-imx-4769be21cca65f1e7bef27bc024d886842bc6bad.zip
u-boot-imx-4769be21cca65f1e7bef27bc024d886842bc6bad.tar.gz
u-boot-imx-4769be21cca65f1e7bef27bc024d886842bc6bad.tar.bz2
Timer: Remove reset_timer() for non-Nios2 arches
Diffstat (limited to 'arch/sh/lib')
-rw-r--r--arch/sh/lib/time.c7
-rw-r--r--arch/sh/lib/time_sh2.c8
2 files changed, 0 insertions, 15 deletions
diff --git a/arch/sh/lib/time.c b/arch/sh/lib/time.c
index c4bfc86..c70baed 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 a5c838b..5827118 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;