ARM: OMAP: Add function to request a timer by capability
authorJon Hunter <jon-hunter@ti.com>
Thu, 6 Sep 2012 20:28:00 +0000 (15:28 -0500)
committerJon Hunter <jon-hunter@ti.com>
Fri, 2 Nov 2012 18:16:29 +0000 (13:16 -0500)
commit373fe0bdf9911c4362942162a2b4d20e6f74da5b
treef56281ff259d2396fd1d224c0f3b55749ddd31e2
parentad24bde8f1025da014108493b595bed22d989efb
ARM: OMAP: Add function to request a timer by capability

Currently OMAP timers can be requested by requesting any available or by a
numerical device ID. If a specific timer is required because it has a particular
capability, such as can interrupt the on-chip DSP in addition to the ARM CPU,
then the user needs to know the device ID of the timer with this feature.
Therefore, add a new API called omap_dm_timer_request_by_cap() that allows
drivers to request a timer by capability.

Signed-off-by: Jon Hunter <jon-hunter@ti.com>
arch/arm/plat-omap/dmtimer.c
arch/arm/plat-omap/include/plat/dmtimer.h