aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat/dmtimer.h
diff options
context:
space:
mode:
authorJon Hunter <jon-hunter@ti.com>2012-09-27 12:49:45 -0400
committerJon Hunter <jon-hunter@ti.com>2012-11-12 17:23:48 -0500
commit971d0254480572bc6dc5574c28ef8fe014660a31 (patch)
tree056f025a560c8b9c15b6df781e8f3da54abdcfa2 /arch/arm/plat-omap/include/plat/dmtimer.h
parentd308ba50a1234b299a00e63a95e61fdeb2f1a2df (diff)
ARM: OMAP: Add DMTIMER definitions for posted mode
For OMAP2+ devices, when using DMTIMERs for system timers (clock-events and clock-source) the posted mode configuration of the timers is used. To allow the compiler to optimise the functions for configuring and reading the system timers, the posted flag variable is hard-coded with the value 1. To make it clear that posted mode is being used add some definitions so that it is more readable. Signed-off-by: Jon Hunter <jon-hunter@ti.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Diffstat (limited to 'arch/arm/plat-omap/include/plat/dmtimer.h')
-rw-r--r--arch/arm/plat-omap/include/plat/dmtimer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/dmtimer.h b/arch/arm/plat-omap/include/plat/dmtimer.h
index f8943c8f9dbf..1bee0ac88760 100644
--- a/arch/arm/plat-omap/include/plat/dmtimer.h
+++ b/arch/arm/plat-omap/include/plat/dmtimer.h
@@ -55,6 +55,10 @@
55#define OMAP_TIMER_TRIGGER_OVERFLOW 0x01 55#define OMAP_TIMER_TRIGGER_OVERFLOW 0x01
56#define OMAP_TIMER_TRIGGER_OVERFLOW_AND_COMPARE 0x02 56#define OMAP_TIMER_TRIGGER_OVERFLOW_AND_COMPARE 0x02
57 57
58/* posted mode types */
59#define OMAP_TIMER_NONPOSTED 0x00
60#define OMAP_TIMER_POSTED 0x01
61
58/* timer capabilities used in hwmod database */ 62/* timer capabilities used in hwmod database */
59#define OMAP_TIMER_SECURE 0x80000000 63#define OMAP_TIMER_SECURE 0x80000000
60#define OMAP_TIMER_ALWON 0x40000000 64#define OMAP_TIMER_ALWON 0x40000000