Skip to content

ARM: shmobile: r8a73a4/r8a7790 CMT and Arch timer update

Magnus Damm linux-arm-kernel linux-sh 1 version New

Get series with b4
b4 am 20130628112655.23809.39115.sendpatchset@w520

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ARM: shmobile: Add r8a7790 CMT00 clock eventarch/arm/mach-shmobile/clock-r8a7790.c arch/arm/mach-shmobile/setup-r8a7790.c+25 -00 replies
2/4ARM: shmobile: Make r8a7790 Arch timer optionalarch/arm/mach-shmobile/Kconfig arch/arm/mach-shmobile/board-lager.c arch/arm/mach-shmobile/include/mach/r8a7790.h +1 more+10 -10 replies
3/4ARM: shmobile: Add r8a73a4 CMT10 clock eventarch/arm/mach-shmobile/clock-r8a73a4.c arch/arm/mach-shmobile/setup-r8a73a4.c+24 -10 replies
4/4ARM: shmobile: Make r8a73a4 Arch timer optionalarch/arm/mach-shmobile/Kconfig arch/arm/mach-shmobile/board-ape6evm.c arch/arm/mach-shmobile/include/mach/r8a73a4.h +1 more+10 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/04] ARM: shmobile: r8a73a4/r8a7790 CMT and Arch timer update

ARM: shmobile: r8a73a4/r8a7790 CMT and Arch timer update

[PATCH 01/04] ARM: shmobile: Add r8a7790 CMT00 clock event [PATCH 02/04] ARM: shmobile: Make r8a7790 Arch timer optional [PATCH 03/04] ARM: shmobile: Add r8a73a4 CMT10 clock event [PATCH 04/04] ARM: shmobile: Make r8a73a4 Arch timer optional

Add clock event support through a CMT timer channel for the SoCs r8a7790 and r8a73a4 as well as APE6EVM and Lager boards.

Also, to be able to test the CMT timers, make it possible to deselect Arch timer and instead rely on predefined values for udelay() and instead of local timer for SMP use broadcast.

A nice side effect of this is that high resolution timers now become available. The reason for the is that the Arch timer sets the C3STOP flag which in turn will tell the time keeping code to not allow high resolution timer without an additional clock event. So here they are.

---

Written against renesas.git renesas-next-20130628 plus [PATCH] ARM: shmobile: Sort r8a7790 MSTP entries [PATCH 00/06] ARM: shmobile: Remove unused auxdata tables

For proper run time operation the following patch included in renesas-next-20130628 must be included in the CMT driver:

clocksource: sh_cmt: 32-bit control register support

 arch/arm/mach-shmobile/Kconfig                |    2 -
 arch/arm/mach-shmobile/board-ape6evm.c        |    1 
 arch/arm/mach-shmobile/board-lager.c          |    1 
 arch/arm/mach-shmobile/clock-r8a73a4.c        |    4 ++-
 arch/arm/mach-shmobile/clock-r8a7790.c        |    4 +++
 arch/arm/mach-shmobile/include/mach/r8a73a4.h |    1 
 arch/arm/mach-shmobile/include/mach/r8a7790.h |    1 
 arch/arm/mach-shmobile/setup-r8a73a4.c        |   29 +++++++++++++++++++++++++
 arch/arm/mach-shmobile/setup-r8a7790.c        |   29 +++++++++++++++++++++++++
 9 files changed, 69 insertions(+), 3 deletions(-)