Skip to content
Commit 35dbb74a authored by Rick Chen's avatar Rick Chen Committed by Greentime Hu
Browse files

clocksource/drivers/atcpit100: Add andestech atcpit100 timer



ATCPIT100 is often used on the Andes architecture,
This timer provide 4 PIT channels. Each PIT channel is a
multi-function timer, can be configured as 32,16,8 bit timers
or PWM as well.

For system timer it will set channel 1 32-bit timer0 as clock
source and count downwards until underflow and restart again.

It also set channel 0 32-bit timer0 as clock event and count
downwards until condition match. It will generate an interrupt
for handling periodically.

Signed-off-by: default avatarRick Chen <rickchen36@gmail.com>
Signed-off-by: default avatarGreentime Hu <green.hu@gmail.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>

Add andestech atcpit100 timer
parent eac8173e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment