Skip to content

OMAP: DMTIMER: Convert platform driver so as to make use of hwmod + omap device framework for OMAP2 PLUS

Thara Gopinath linux-omap 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9OMAP: Convert dual mode timer into a platform driver.arch/arm/plat-omap/dmtimer.c arch/arm/plat-omap/include/plat/dmtimer.h+176 -2371 reply
2/9OMAP1: Dual mode timer device registration.arch/arm/mach-omap1/Makefile arch/arm/mach-omap1/dmtimers.c arch/arm/mach-omap1/timer32k.c+149 -30 replies
3/9OMAP2/3/4 : Dual mode timer device registration.arch/arm/mach-omap2/Makefile arch/arm/mach-omap2/dmtimers.c arch/arm/mach-omap2/dmtimers.h +1 more+355 -35 replies
4/9OMAP2: Support for early device registrationarch/arm/mach-omap2/io.c+16 -01 reply
5/9OMAP2/3/4: Adding device names to dmtimer fclk nodesarch/arm/mach-omap2/clock2420_data.c arch/arm/mach-omap2/clock2430_data.c arch/arm/mach-omap2/clock3xxx_data.c +1 more+46 -460 replies
6/9OMAP3: Add hwmod data for OMAP3 dual mode timers.arch/arm/mach-omap2/omap_hwmod_3xxx_data.c+571 -10 replies
7/9OMAP2: Add hwmod data for OMAP2420 dual mode timers.arch/arm/mach-omap2/omap_hwmod_2420_data.c+618 -10 replies
8/9OMAP2: Add hwmod data for OMAP2430 dual mode timers.arch/arm/mach-omap2/omap_hwmod_2430_data.c+618 -10 replies
9/9OMAP4: Changing dmtimer1 fclk namearch/arm/mach-omap2/clock44xx_data.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 [PATCH 0/9] OMAP: DMTIMER: Convert platform driver so as to make use of hwmod + omap device framework for OMAP2 PLUS

This patch series converts the OMAP Dual Mode Timer into a platform driver. This involves using of hwmod structures and omap_device layer for OMAP2/3/4 dmtimers and generic linux platform device layer for OMAP1.

As a result of this patch series the dmtimer platform driver resides in arch/arm/plat-omap directory and arch specific implementations and device registerations reside in arch/arm/mach-omap1 and arch/arm/mach-omap2 for OMAP1 and OMAP2 PLUS respectively.

This patch series has been compile tested for OMAP1 using omap_1610_h2_defconfig, compile tested for OMAP2 using omap3_defconfig and boot and sanity tested for OMAP3/OMAP4 again using omap3_defconfig. Boot testing has been done on OMAP3430 SDP and OMAP4430 SDP boards. All testing has been done on origin/origin/pm-wip/hwmods-omap4 branch off Kevin Hilman's tree as these patches have dependencies on runtime pm API's and OMAP4 autogenerated hwmod data base.

It would be great if somebody could test these patches on OMAP1 and OMAP2 platforms.

Thara Gopinath (9):
OMAP: Convert dual mode timer into a platform driver.
OMAP1: Dual mode timer device registration. OMAP2/3/4 : Dual mode timer device registration.
OMAP2: Support for early device registration OMAP2/3/4: Adding device names to dmtimer fclk nodes
OMAP3: Add hwmod data for OMAP3 dual mode timers.
OMAP2: Add hwmod data for OMAP2420 dual mode timers.
OMAP2: Add hwmod data for OMAP2430 dual mode timers.
OMAP4: Changing dmtimer1 fclk name

 arch/arm/mach-omap1/Makefile               |    1 +
 arch/arm/mach-omap1/dmtimers.c             |  148 +++++++
 arch/arm/mach-omap1/timer32k.c             |    3 -
 arch/arm/mach-omap2/Makefile               |    3 +-
 arch/arm/mach-omap2/clock2420_data.c       |   24 +-
 arch/arm/mach-omap2/clock2430_data.c       |   24 +-
 arch/arm/mach-omap2/clock3xxx_data.c       |   22 +-
 arch/arm/mach-omap2/clock44xx_data.c       |   24 +-
 arch/arm/mach-omap2/dmtimers.c             |  296 +++++++++++++
 arch/arm/mach-omap2/dmtimers.h             |   57 +++
 arch/arm/mach-omap2/io.c                   |   16 +
 arch/arm/mach-omap2/omap_hwmod_2420_data.c |  619 +++++++++++++++++++++++++++-
 arch/arm/mach-omap2/omap_hwmod_2430_data.c |  619 +++++++++++++++++++++++++++-
 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c |  572 +++++++++++++++++++++++++-
 arch/arm/mach-omap2/timer-gp.c             |    2 -
 arch/arm/plat-omap/dmtimer.c               |  401 ++++++++-----------
 arch/arm/plat-omap/include/plat/dmtimer.h  |   12 +-
 17 files changed, 2550 insertions(+), 293 deletions(-)
 create mode 100644 arch/arm/mach-omap1/dmtimers.c
 create mode 100644 arch/arm/mach-omap2/dmtimers.c
 create mode 100644 arch/arm/mach-omap2/dmtimers.h