Skip to content

ARM: add clock api to sp804 and smp_twd timers

Rob Herring linux-arm-kernel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 0 repliesSuperseded

Changes in v2 from the cover letter

Implement comments from Russell.
Use clk_get_sys to get twd clock.
Allow independent clocks for timer-sp clocksource and clockevent timers.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ARM: move timer-sp.c from versatile to commonarch/arm/common/Makefile arch/arm/common/timer-sp.c arch/arm/include/asm/hardware/timer-sp.h +6 more+7 -90 replies
2/3ARM: timer-sp: support timer clock freq other than 1MHzarch/arm/common/timer-sp.c arch/arm/include/asm/hardware/timer-sp.h arch/arm/mach-integrator/integrator_cp.c +4 more+37 -211 reply
2/3ARM: timer-sp: support timer clock freq other than 1MHz+0 -00 replies
3/3ARM: twd_smp: add clock api supportarch/arm/include/asm/smp_twd.h arch/arm/kernel/smp_twd.c+12 -01 reply
3/3ARM: twd_smp: add clock api support+0 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] ARM: add clock api to sp804 and smp_twd timers

From: Rob Herring <[email protected]>

Changes from v1:
Implement comments from Russell.
Use clk_get_sys to get twd clock.
Allow independent clocks for timer-sp clocksource and clockevent timers.

Rob Herring (3):
ARM: move timer-sp.c from versatile to common
ARM: timer-sp: support timer clock freq other than 1MHz
ARM: twd_smp: add clock api support

 arch/arm/common/Makefile                        |    1 +
 arch/arm/{plat-versatile => common}/timer-sp.c  |   38 +++++++++++++++-------
 arch/arm/include/asm/hardware/timer-sp.h        |    2 +
 arch/arm/include/asm/smp_twd.h                  |    1 +
 arch/arm/kernel/smp_twd.c                       |   11 ++++++
 arch/arm/mach-integrator/integrator_cp.c        |    6 ++--
 arch/arm/mach-realview/core.c                   |    6 ++--
 arch/arm/mach-versatile/core.c                  |    6 ++--
 arch/arm/mach-vexpress/ct-ca9x4.c               |    6 ++--
 arch/arm/mach-vexpress/v2m.c                    |    6 ++--
 arch/arm/plat-versatile/Makefile                |    1 -
 arch/arm/plat-versatile/include/plat/timer-sp.h |    2 -
 12 files changed, 56 insertions(+), 30 deletions(-)
 rename arch/arm/{plat-versatile => common}/timer-sp.c (81%)
 create mode 100644 arch/arm/include/asm/hardware/timer-sp.h
 delete mode 100644 arch/arm/plat-versatile/include/plat/timer-sp.h