diff options
author | Jon Hunter <jon-hunter@ti.com> | 2012-09-06 16:28:00 -0400 |
---|---|---|
committer | Jon Hunter <jon-hunter@ti.com> | 2012-11-02 14:16:29 -0400 |
commit | 373fe0bdf9911c4362942162a2b4d20e6f74da5b (patch) | |
tree | f56281ff259d2396fd1d224c0f3b55749ddd31e2 /arch/arm/plat-omap/include/plat/dmtimer.h | |
parent | ad24bde8f1025da014108493b595bed22d989efb (diff) |
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.h | 1 |
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 { | |||
99 | int omap_dm_timer_reserve_systimer(int id); | 99 | int omap_dm_timer_reserve_systimer(int id); |
100 | struct omap_dm_timer *omap_dm_timer_request(void); | 100 | struct omap_dm_timer *omap_dm_timer_request(void); |
101 | struct omap_dm_timer *omap_dm_timer_request_specific(int timer_id); | 101 | struct omap_dm_timer *omap_dm_timer_request_specific(int timer_id); |
102 | struct omap_dm_timer *omap_dm_timer_request_by_cap(u32 cap); | ||
102 | int omap_dm_timer_free(struct omap_dm_timer *timer); | 103 | int omap_dm_timer_free(struct omap_dm_timer *timer); |
103 | void omap_dm_timer_enable(struct omap_dm_timer *timer); | 104 | void omap_dm_timer_enable(struct omap_dm_timer *timer); |
104 | void omap_dm_timer_disable(struct omap_dm_timer *timer); | 105 | void omap_dm_timer_disable(struct omap_dm_timer *timer); |