aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/include
diff options
context:
space:
mode:
authorSteven Miao <realmz6@gmail.com>2012-06-05 22:33:26 -0400
committerBob Liu <lliubbo@gmail.com>2012-07-24 01:39:50 -0400
commit5f78028b1a1764cbd479092f568efe17a18af26f (patch)
treed6f6b9593a6c75061fbd6dc18fa98b1c98c0cc7d /arch/blackfin/include
parent3fa8c4b0334fe582b4dd9137199870e4322cd743 (diff)
bfin: simple_timer: add READ_COUNTER ioctl and add NOIRQ timer mode
Signed-off-by: Steven Miao <realmz6@gmail.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin/include')
-rw-r--r--arch/blackfin/include/asm/bfin_simple_timer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/bfin_simple_timer.h b/arch/blackfin/include/asm/bfin_simple_timer.h
index aadfb1ad1fac..b2d5e733079e 100644
--- a/arch/blackfin/include/asm/bfin_simple_timer.h
+++ b/arch/blackfin/include/asm/bfin_simple_timer.h
@@ -17,5 +17,11 @@
17#define BFIN_SIMPLE_TIMER_START _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 6) 17#define BFIN_SIMPLE_TIMER_START _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 6)
18#define BFIN_SIMPLE_TIMER_STOP _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 8) 18#define BFIN_SIMPLE_TIMER_STOP _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 8)
19#define BFIN_SIMPLE_TIMER_READ _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 10) 19#define BFIN_SIMPLE_TIMER_READ _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 10)
20#define BFIN_SIMPLE_TIMER_READ_COUNTER _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 11)
21
22#define BFIN_SIMPLE_TIMER_MODE_PWM_ONESHOT 0
23#define BFIN_SIMPLE_TIMER_MODE_PWMOUT_CONT 1
24#define BFIN_SIMPLE_TIMER_MODE_WDTH_CAP 2
25#define BFIN_SIMPLE_TIMER_MODE_PWMOUT_CONT_NOIRQ 3
20 26
21#endif 27#endif