aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sh_cmt.h
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2009-01-22 04:55:59 -0500
committerPaul Mundt <lethal@linux-sh.org>2009-01-29 02:56:32 -0500
commit3fb1b6ad0679ad671bd496712b2a088550ee86b2 (patch)
treec8cbdb83a2ee6f3d1b9078d7b87e92e7dc1d9764 /include/linux/sh_cmt.h
parent07821d3310996746a2cf1e9c705ffe64223d1112 (diff)
sh: CMT clockevent platform driver
SuperH CMT clockevent driver. Both 16-bit and 32-bit CMT versions are supported, but only 32-bit is tested. This driver contains support for both clockevents and clocksources, but no unregistration is supported at this point. Works fine as clock source and/or event in periodic or oneshot mode. Tested on sh7722 and sh7723, but should work with any cpu/architecture. This version is lacking clocksource and early platform driver support for now - this to minimize the amount of dependencies. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/linux/sh_cmt.h')
-rw-r--r--include/linux/sh_cmt.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/sh_cmt.h b/include/linux/sh_cmt.h
new file mode 100644
index 00000000000..68cacde5954
--- /dev/null
+++ b/include/linux/sh_cmt.h
@@ -0,0 +1,13 @@
1#ifndef __SH_CMT_H__
2#define __SH_CMT_H__
3
4struct sh_cmt_config {
5 char *name;
6 unsigned long channel_offset;
7 int timer_bit;
8 char *clk;
9 unsigned long clockevent_rating;
10 unsigned long clocksource_rating;
11};
12
13#endif /* __SH_CMT_H__ */