]> git.sur5r.net Git - u-boot/commitdiff
arm, davinci: add timer defines for tcr field
authorHeiko Schocher <hs@denx.de>
Sat, 14 Jan 2012 21:43:04 +0000 (21:43 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sun, 12 Feb 2012 09:11:23 +0000 (10:11 +0100)
Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Tom Rini <tom.rini@gmail.com>
arch/arm/include/asm/arch-davinci/timer_defs.h

index 49b9e249568c3592b7ef89097d30d90b1ec98658..914ae07dca30dd30d9c8b8d0c4da54800eac10d9 100644 (file)
@@ -37,6 +37,19 @@ struct davinci_timer {
        u_int32_t       wdtcr;
 };
 
+#define DV_TIMER_TCR_ENAMODE_MASK              3
+
+#define DV_TIMER_TCR_ENAMODE12_SHIFT           6
+#define DV_TIMER_TCR_CLKSRC12_SHIFT            8
+#define DV_TIMER_TCR_READRSTMODE12_SHIFT       10
+#define DV_TIMER_TCR_CAPMODE12_SHIFT           11
+#define DV_TIMER_TCR_CAPVTMODE12_SHIFT         12
+#define DV_TIMER_TCR_ENAMODE34_SHIFT           22
+#define DV_TIMER_TCR_CLKSRC34_SHIFT            24
+#define DV_TIMER_TCR_READRSTMODE34_SHIFT       26
+#define DV_TIMER_TCR_CAPMODE34_SHIFT           27
+#define DV_TIMER_TCR_CAPEVTMODE12_SHIFT                28
+
 #define DV_WDT_ENABLE_SYS_RESET                0x00020000
 #define DV_WDT_TRIGGER_SYS_RESET       0x00020002