Skip to content

Memory mapped architected timers

Stephen Boyd linux-arm-kernel linux-arm-msm linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Documentation: Add memory mapped ARM architected timer bindingDocumentation/devicetree/bindings/arm/arch_timer.txt+56 -30 replies
2/4clocksource: arch_timer: Pass clock event to set_mode callbackdrivers/clocksource/arm_arch_timer.c+1 -10 replies
3/4clocksource: arch_timer: Push the read/write wrappers deeperarch/arm/include/asm/arch_timer.h arch/arm64/include/asm/arch_timer.h drivers/clocksource/arm_arch_timer.c+34 -190 replies
4/4clocksource: arch_timer: Add support for memory mapped timersdrivers/clocksource/arm_arch_timer.c include/clocksource/arm_arch_timer.h+360 -563 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCHv3/RESEND 0/4] Memory mapped architected timers

(Resending this patchset to Daniel since it looks like Daniel is picking up these types of patches.)

This patchset adds support for memory mapped architected timers. We don't have any other global broadcast timer in our system, so we use the mmio timer during low power modes. The first patch is the binding. The next two patches lay some groundwork so that the last patch is simpler. The final patch adds support for mmio timers.

Patches are based on a patch from Mark that removes the physical count reading (clocksource: arch_timer: use virtual counter, message id <[email protected]>). This patch is now in RMK's devel-stable branch:

ftp://ftp.arm.linux.org.uk/pub/linux/arm/kernel/git-cur/linux-2.6-arm.git/ devel-stable

Updates since v2:
* Rebased onto v3.10-rc1

Updates since v1:
* Assigned counter reading function and commented why for arm64
* Updated DT binding to replace frame-id with frame-number and use status property

Stephen Boyd (4):
Documentation: Add memory mapped ARM architected timer binding
clocksource: arch_timer: Pass clock event to set_mode callback
clocksource: arch_timer: Push the read/write wrappers deeper
clocksource: arch_timer: Add support for memory mapped timers

 .../devicetree/bindings/arm/arch_timer.txt         |  59 ++-
 arch/arm/include/asm/arch_timer.h                  |   5 +-
 arch/arm64/include/asm/arch_timer.h                |   4 +-
 drivers/clocksource/arm_arch_timer.c               | 452 +++++++++++++++++----
 include/clocksource/arm_arch_timer.h               |   4 +-
 5 files changed, 448 insertions(+), 76 deletions(-)
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation