]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
clocksource/drivers/fttmr010: Refactor to handle clock
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 24 Mar 2017 21:32:35 +0000 (22:32 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 7 Apr 2017 14:23:08 +0000 (16:23 +0200)
commit28e71e2fe8fe6cdbd1bdc61601ea50d6423d3cf0
tree745688ebc21f151d9a7bcbce406d77bd22f3dd3c
parentf5bf0ee4ebf779e256bb710f638b4452d94e97fb
clocksource/drivers/fttmr010: Refactor to handle clock

The plain Faraday FTTMR010 timer needs a clock to figure out its
tick rate, and the gemini reads it directly from the system
controller set-up. Split the init function and add two paths for
the two compatible-strings. We only support clocking using PCLK
because of lack of documentation on how EXTCLK works.

The Gemini still works like before, but we can also support a
generic, clock-based version.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-fttmr010.c