clockevents/drivers: Add STM32 Timer driver
authorMaxime Coquelin <mcoquelin.stm32@gmail.com>
Fri, 22 May 2015 21:03:33 +0000 (23:03 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 2 Jun 2015 10:10:15 +0000 (12:10 +0200)
commite37e45934afed32f00e16db745c410d5c675456d
tree6ad9e2026ff0753ae5e2fa311d8ecabd39c2ef52
parent4853914ffcea925ded0ac2be205f55688f302caa
clockevents/drivers: Add STM32 Timer driver

STM32 MCUs feature 16 and 32 bits general purpose timers with prescalers.
The drivers detects whether the time is 16 or 32 bits, and applies a
1024 prescaler value if it is 16 bits.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/Kconfig
drivers/clocksource/Makefile
drivers/clocksource/timer-stm32.c [new file with mode: 0644]