summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat/dmtimer.h
diff options
context:
space:
mode:
authorJon Hunter2012-09-27 18:49:45 +0200
committerJon Hunter2012-11-12 23:23:48 +0100
commit971d0254480572bc6dc5574c28ef8fe014660a31 (patch)
tree056f025a560c8b9c15b6df781e8f3da54abdcfa2 /arch/arm/plat-omap/include/plat/dmtimer.h
parentMerge branch 'omap-for-v3.8/cleanup-headers-prepare-multiplatform-v3' into om... (diff)
downloadkernel-qcow2-linux-971d0254480572bc6dc5574c28ef8fe014660a31.tar.gz
kernel-qcow2-linux-971d0254480572bc6dc5574c28ef8fe014660a31.tar.xz
kernel-qcow2-linux-971d0254480572bc6dc5574c28ef8fe014660a31.zip
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 @@
#define OMAP_TIMER_TRIGGER_OVERFLOW 0x01
#define OMAP_TIMER_TRIGGER_OVERFLOW_AND_COMPARE 0x02
+/* posted mode types */
+#define OMAP_TIMER_NONPOSTED 0x00
+#define OMAP_TIMER_POSTED 0x01
+
/* timer capabilities used in hwmod database */
#define OMAP_TIMER_SECURE 0x80000000
#define OMAP_TIMER_ALWON 0x40000000