]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
clocksource/drivers/fttmr010: Implement delay timer
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 11 Jun 2017 21:26:17 +0000 (23:26 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 14 Jun 2017 10:02:33 +0000 (12:02 +0200)
commit385c98fcc1fb58c3e10157be2203eb37595dac7b
treececb7dc61cc843b667e7d23e0309300f9315f0ab
parentdc11bae78529526605c5c45c369c9512fd012093
clocksource/drivers/fttmr010: Implement delay timer

This timer is often used on the ARM architecture, so as with so
many siblings, we can implement delay timers, removing the need
for the system to calibrate jiffys at boot, and potentially
handling CPU frequency scaling on targets.

We cannot just protect the Kconfig with a "depends on ARM" because
it is already known that different architectures are using Faraday
IP blocks, so it is better to make things open-ended and use

Result on boot dmesg:

Switching to timer-based delay loop, resolution 40n
Calibrating delay loop (skipped), value calculated using
  timer frequency.. 50.00 BogoMIPS (lpj=250000)

This is accurately the timer frequency, 250MHz on the APB
bus.

Cc: Andrew Jeffery <andrew@aj.id.au>
Cc: Joel Stanley <joel@jms.id.au>
Cc: Jonas Jensen <jonas.jensen@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Jonas Jensen <jonas.jensen@gmail.com>
Tested-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-fttmr010.c