]> err.no Git - linux-2.6/commit
[AVR32] Change system timer from count-compare to Timer/Counter 0
authorHans-Christian Egtvedt <hcegtvedt@atmel.com>
Mon, 12 Mar 2007 17:15:16 +0000 (18:15 +0100)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Fri, 27 Apr 2007 11:44:12 +0000 (13:44 +0200)
commit7760989e5e2900e484e9115e6e690c6ce0b0221c
tree465791d8a5d0360a6d41fc592c09abd4932aafe1
parent228e845fd243bf42033998afab792357444e9e4a
[AVR32] Change system timer from count-compare to Timer/Counter 0

Due to limitation of the count-compare system timer (not able to
count when CPU is in sleep), the system timer had to be changed to
use a peripheral timer/counter.

The old COUNT-COMPARE code is still present in time.c as weak
functions. The new timer is added to the architecture directory.

This patch sets up TC0 as system timer The new timer has been tested
on AT32AP7000/ATSTK1000 at 100 Hz, 250 Hz, 300 Hz and 1000 Hz.

For more details about the timer/counter see the datasheet for
AT32AP700x available at

http://www.atmel.com/dyn/products/product_card.asp?part_id=3903

Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
arch/avr32/kernel/time.c
arch/avr32/mach-at32ap/Makefile
arch/avr32/mach-at32ap/at32ap7000.c
arch/avr32/mach-at32ap/time-tc.c [new file with mode: 0644]
include/asm-avr32/arch-at32ap/time.h [new file with mode: 0644]