summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat/dmtimer.h
diff options
context:
space:
mode:
authorJon Hunter2012-09-06 22:28:00 +0200
committerJon Hunter2012-11-02 19:16:29 +0100
commit373fe0bdf9911c4362942162a2b4d20e6f74da5b (patch)
treef56281ff259d2396fd1d224c0f3b55749ddd31e2 /arch/arm/plat-omap/include/plat/dmtimer.h
parentARM: OMAP3: Dynamically disable secure timer nodes for secure devices (diff)
downloadkernel-qcow2-linux-373fe0bdf9911c4362942162a2b4d20e6f74da5b.tar.gz
kernel-qcow2-linux-373fe0bdf9911c4362942162a2b4d20e6f74da5b.tar.xz
kernel-qcow2-linux-373fe0bdf9911c4362942162a2b4d20e6f74da5b.zip
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>
Diffstat (limited to 'arch/arm/plat-omap/include/plat/dmtimer.h')
-rw-r--r--arch/arm/plat-omap/include/plat/dmtimer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/dmtimer.h b/arch/arm/plat-omap/include/plat/dmtimer.h
index 85868e98c11c..348f855d3dab 100644
--- a/arch/arm/plat-omap/include/plat/dmtimer.h
+++ b/arch/arm/plat-omap/include/plat/dmtimer.h
@@ -99,6 +99,7 @@ struct dmtimer_platform_data {
int omap_dm_timer_reserve_systimer(int id);
struct omap_dm_timer *omap_dm_timer_request(void);
struct omap_dm_timer *omap_dm_timer_request_specific(int timer_id);
+struct omap_dm_timer *omap_dm_timer_request_by_cap(u32 cap);
int omap_dm_timer_free(struct omap_dm_timer *timer);
void omap_dm_timer_enable(struct omap_dm_timer *timer);
void omap_dm_timer_disable(struct omap_dm_timer *timer);