Skip to content

RFC Clocksource driver for OMAP SoCs

Joel Fernandes linux-arm-kernel linux-omap lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ARM: dts: am33xx: Add clock nodes for timer1 and timer2arch/arm/boot/dts/am33xx.dtsi+2 -00 replies
2/5ARM: dts: am33xx: Set parent clock for timer through DTarch/arm/boot/dts/am33xx.dtsi+2 -01 reply
3/5ARM: OMAP2+: timer: Add clocksource initialization and powerup supportarch/arm/mach-omap2/common.h arch/arm/mach-omap2/timer.c+29 -05 replies
4/5clocksource: omap-timer: Introduce clocksource driver for OMAP SoCsdrivers/clocksource/Makefile drivers/clocksource/omap-timer.c drivers/clocksource/omap-timer.h+1580 -07 replies
5/5ARM: AM33xx: Move to using omap_generic_timer_init for init_timearch/arm/mach-omap2/board-generic.c+1 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC 0/5] Clocksource driver for OMAP SoCs

Here's an RFC series for clocksource migration of OMAP timers. This attempt is going to step-by-step attempt to migrate platforms such that everything is kept working smoothly during migration. Currently the series introduces a clocksource driver and migrates AM335x platform to discuss the general idea.

The plan is to move dmtimer to clocksource (infact make a copy for now so that platforms not migrated still work). Then we add a per-SoC clocksource registration and select a timer as each of them are initialized by clocksource (suggested in [1]).

We also add support for a generic timer init function which is called for every SoC for which support in clocksource driver is available. And, we call a generic OMAP power up function which is introduced in the mach-omap layer in this series.

Lastly, we add clock nodes for the system timers, and setup a default-parent so that the parent clocks are setup correctly. Due to this, the series depends on Tero's series [2].

Please note- this effort is for system timer support. This is the first basic step. Converting dmtimer to use any other generic framework is a completely different topic and should not be discussed in this thread. It is something that can be done only _after_ the work done in this series is completed, thanks.

[1] https://lkml.org/lkml/2013/11/23/88
[2] http://www.spinics.net/lists/linux-omap/msg103069.html

Joel Fernandes (5):
ARM: dts: am33xx: Add clock nodes for timer1 and timer2
ARM: dts: am33xx: Set parent clock for timer through DT
ARM: OMAP2+: timer: Add clocksource initialization and powerup
support
clocksource: omap-timer: Introduce clocksource driver for OMAP SoCs
ARM: AM33xx: Move to using omap_generic_timer_init for init_time

 arch/arm/boot/dts/am33xx.dtsi       |    4 +
 arch/arm/mach-omap2/board-generic.c |    2 +-
 arch/arm/mach-omap2/common.h        |    1 +
 arch/arm/mach-omap2/timer.c         |   28 +
 drivers/clocksource/Makefile        |    1 +
 drivers/clocksource/omap-timer.c    | 1157 +++++++++++++++++++++++++++++++++++
 drivers/clocksource/omap-timer.h    |  422 +++++++++++++
 7 files changed, 1614 insertions(+), 1 deletion(-)
 create mode 100644 drivers/clocksource/omap-timer.c
 create mode 100644 drivers/clocksource/omap-timer.h
Signature · 1 line
1.7.9.5