[PATCH v3 0/5] Add system timer driver for Mediatek SoCs
From: Stanley Chu
Date: Thu Jun 28 2018 - 06:46:41 EST
Changes since v2:
- Rename existed mtk_timer.c to timer-mediatek.c.
- Add system timer support into timer-mediatek.c instead of creating a new file.
- Use _gpt_ and _syst_ to identify different timers.
- Convert gpt driver to use timer_of.
- Fix system timer driver: irq flags.
- Fix bindings of both gpt and system timer.
Changes since v1:
- Use timer_of structure and APIs to make driver more clean.
- Remove unnecessary headers.
- Use fixed-clock.
- Fix indent.
Stanley Chu (5):
clocksource/drivers/timer-mediatek: Add system timer bindings
clocksource/drivers/timer-mediatek: Rename mtk_timer to timer-mediatek
clocksource/drivers/timer-mediatek: Rename function prefix
clocksource/drivers/timer-mediatek: Convert the driver to timer-of
clocksource/drivers/timer-mediatek: Add support for system timer
.../bindings/timer/mediatek,mtk-timer.txt | 38 ++-
drivers/clocksource/Makefile | 2 +-
drivers/clocksource/mtk_timer.c | 268 ---------------
drivers/clocksource/timer-mediatek.c | 363 +++++++++++++++++++++
4 files changed, 396 insertions(+), 275 deletions(-)
delete mode 100644 drivers/clocksource/mtk_timer.c
create mode 100644 drivers/clocksource/timer-mediatek.c