Skip to content

clocksource: add rockchip rk3288 specific armv7-timer

Heiko Stübner linux-arm-kernel linux-devicetree lkml 1 version In review

Get series with b4
b4 am 70167479.zcs3JF0luJ@diego

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2clocksource: arm_arch_timer: remove static from arch_timer_initdrivers/clocksource/arm_arch_timer.c drivers/clocksource/arm_arch_timer.h+8 -11 reply
2/2clocksource: add rockchip-specific armv7-timer setupDocumentation/devicetree/bindings/arm/rockchip/armv7-timer.txt drivers/clocksource/Makefile drivers/clocksource/rockchip_timer.c+80 -04 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] clocksource: add rockchip rk3288 specific armv7-timer

The architected timer on Rockchip's RK3288 SoCs needs a bit of special handling to start.

This seems to be similar to a recent discussion about the Exynos arch-timer that also seems to need similar special handling (and mct timer running).

And, the arch-timer on recent Mediatek SoCs also uses this pattern of a supplying timer below the arch-timer.

Therefore follow a suggestion from Arnd Bergmann and implement a separate clocksource for it that does the setup and then initializes the arch-timer.

This series uses "of: Provide function to request and map memory" from Matthias Brugger.

Heiko Stuebner (2):
clocksource: arm_arch_timer: remove static from arch_timer_init
clocksource: add rockchip-specific armv7-timer setup

 .../bindings/arm/rockchip/armv7-timer.txt          | 22 +++++++++
 drivers/clocksource/Makefile                       |  1 +
 drivers/clocksource/arm_arch_timer.c               |  2 +-
 drivers/clocksource/arm_arch_timer.h               |  7 +++
 drivers/clocksource/rockchip_timer.c               | 57 ++++++++++++++++++++++
 5 files changed, 88 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/arm/rockchip/armv7-timer.txt
 create mode 100644 drivers/clocksource/arm_arch_timer.h
 create mode 100644 drivers/clocksource/rockchip_timer.c
Signature · 1 line
1.9.0