[PATCH v2 0/2] Indroduce Exynos Multi Core Timer version 2
From: Youngmin Nam
Date: Mon Nov 01 2021 - 19:45:09 EST
Exynos Multi Core Timer version 2 is a new main system timer of next Exynos SoC.
Exynos MCT v2 consists of 1 64bit FRC(Free Running Counter) and 12 comparators.
Each comaprator produces interrupt when the value of current FRC + periods value matches with the
increasinig value of FRC.
So, 12 comaprators can be used as per-cpu event timer.
And RTC can be used as a backup clock source.
Changes in v2:
- Add config dependency with ARCH_EXYNOS.
- Remove 32bit of "mct-frc" which was used as a clock source in legacy SoC.
(Currently, clock source was replaced with ARM arch timer)
- Fix non-linux style comments and debug messege.
- Fix license comments.
- Update commit messege a bit to make it clear.
Youngmin Nam (2):
clocksource/drivers/exynos_mct_v2: introduce Exynos MCT version 2
driver for next Exynos SoC
dt-bindings: timer: samsung,s5e99xx-mct: Document s5e99xx-mct bindings
.../bindings/timer/samsung,s5e99xx-mct.yaml | 91 ++++++
drivers/clocksource/Kconfig | 7 +
drivers/clocksource/Makefile | 1 +
drivers/clocksource/exynos_mct_v2.c | 298 ++++++++++++++++++
drivers/clocksource/exynos_mct_v2.h | 71 +++++
5 files changed, 468 insertions(+)
create mode 100644 Documentation/devicetree/bindings/timer/samsung,s5e99xx-mct.yaml
create mode 100644 drivers/clocksource/exynos_mct_v2.c
create mode 100644 drivers/clocksource/exynos_mct_v2.h
--
2.33.0