1 #ifndef _ARM_OMAP_OMAP_GPTMRREG_H_
2 #define _ARM_OMAP_OMAP_GPTMRREG_H_
21 #define TIDR_TID_REV_MASK 0xF
23 #define TIOCP_CFG_AUTOIDLE (1<<0)
24 #define TIOCP_CFG_SOFTRESET (1<<1)
25 #define TIOCP_CFG_ENAWAKEUP (1<<2)
26 #define TIOCP_CFG_IDLEMODE_MASK (3<<3)
27 #define TIOCP_CFG_IDLEMODE(n) (((n)&0x3)<<3)
28 #define TIOCP_CFG_EMUFREE (1<<5)
30 #define TISTAT_RESETDONE (1<<0)
32 #define TISR_MAT_IT_FLAG (1<<0)
33 #define TISR_OVF_IT_FLAG (1<<1)
34 #define TISR_TCAR_IT_FLAG (1<<2)
36 #define TIER_MAT_IT_ENA (1<<0)
37 #define TIER_OVF_IT_ENA (1<<1)
38 #define TIER_TCAR_IT_ENA (1<<2)
40 #define TWER_MAT_WUP_ENA (1<<0)
41 #define TWER_OVF_WUP_ENA (1<<2)
42 #define TWER_TCAR_WUP_ENA (1<<3)
44 #define TCLR_ST (1<<0)
45 #define TCLR_AR (1<<1)
46 #define TCLR_PTV_MASK (7<<2)
47 #define TCLR_PTV(n) ((n)<<2)
48 #define TCLR_PRE(n) ((n)<<5)
49 #define TCLR_CE (1<<6)
50 #define TCLR_SCPWM (1<<7)
51 #define TCLR_TCM(n) ((n)<<8)
52 #define TCLR_TCM_MASK (3<<8)
53 #define TCLR_TRG(n) ((n)<<10)
54 #define TCLR_TRG_MASK (3<<10)
55 #define TCLR_PT (1<<12)
57 #define TCLR_TCM_NONE 0
58 #define TCLR_TCM_RISING 1
59 #define TCLR_TCM_FALLING 2
60 #define TCLR_TCM_BOTH 3
62 #define TCLR_TRG_NONE 0
63 #define TCLR_TRG_OVERFLOW 1
64 #define TCLR_TRG_OVERFLOW_AND_MATCH 2
66 #define TWPS_W_PEND__TCLR (1<<0)
67 #define TWPS_W_PEND__TCRR (1<<1)
68 #define TWPS_W_PEND__TLDR (1<<2)
69 #define TWPS_W_PEND__TTGR (1<<3)
70 #define TWPS_W_PEND__TMAR (1<<4)
72 #define TSICR_POSTED (1<<2)
73 #define TSICR_SFT (1<<1)