summaryrefslogtreecommitdiff
path: root/arch/avr32
diff options
context:
space:
mode:
authorGraeme Russ <graeme.russ@gmail.com>2011-07-15 02:18:12 +0000
committerWolfgang Denk <wd@denx.de>2011-07-26 14:52:17 +0200
commit5c8404aff16c2a207a11e1af5843e1009bf9fb01 (patch)
tree65d07a585508bf1dab4ddabf2768e44fb43d6f1f /arch/avr32
parentdcac25a05e2bdf35be1e13c432d238007d1c3b9f (diff)
downloadu-boot-imx-5c8404aff16c2a207a11e1af5843e1009bf9fb01.zip
u-boot-imx-5c8404aff16c2a207a11e1af5843e1009bf9fb01.tar.gz
u-boot-imx-5c8404aff16c2a207a11e1af5843e1009bf9fb01.tar.bz2
Timer: Remove set_timer completely
Diffstat (limited to 'arch/avr32')
-rw-r--r--arch/avr32/cpu/interrupts.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/avr32/cpu/interrupts.c b/arch/avr32/cpu/interrupts.c
index c6ea435..8406f91 100644
--- a/arch/avr32/cpu/interrupts.c
+++ b/arch/avr32/cpu/interrupts.c
@@ -77,22 +77,6 @@ unsigned long get_timer(unsigned long base)
return (unsigned long)(now >> 32) - base;
}
-void set_timer(unsigned long t)
-{
- unsigned long long ticks = t;
- unsigned long lo, hi, hi_new;
-
- ticks = (ticks * get_tbclk()) / CONFIG_SYS_HZ;
- hi = ticks >> 32;
- lo = ticks & 0xffffffffUL;
-
- do {
- timer_overflow = hi;
- sysreg_write(COUNT, lo);
- hi_new = timer_overflow;
- } while (hi_new != hi);
-}
-
/*
* For short delays only. It will overflow after a few seconds.
*/