summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2009-04-30 07:02:49 +0000
committerPaul Mundt <lethal@linux-sh.org>2009-05-03 17:36:02 +0900
commitd5ed4c2e5ce9f5f6fd6a5a39ee1196a1f8a46eed (patch)
tree350f5a61bb75368a01f26ea2f0fa612b05cfc9bf /include/linux
parent7563431107f6debf57c1dbecfb9498cf31a1c036 (diff)
downloadlinux-d5ed4c2e5ce9f5f6fd6a5a39ee1196a1f8a46eed.tar.gz
linux-d5ed4c2e5ce9f5f6fd6a5a39ee1196a1f8a46eed.tar.bz2
linux-d5ed4c2e5ce9f5f6fd6a5a39ee1196a1f8a46eed.zip
clocksource: SuperH MTU2 Timer driver
This patch adds a MTU2 driver for the SuperH architecture. The MTU2 driver is a platform driver with early platform support to allow using a MTU2 channel as only clockevent during system bootup. Clocksource on sh2a is currently unsupported due to code generation issues with 64-bit math, so at this point only periodic clockevent support is in place. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sh_mtu2.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/sh_mtu2.h b/include/linux/sh_mtu2.h
new file mode 100644
index 000000000000..a98876340ff4
--- /dev/null
+++ b/include/linux/sh_mtu2.h
@@ -0,0 +1,12 @@
+#ifndef __SH_MTU2_H__
+#define __SH_MTU2_H__
+
+struct sh_mtu2_config {
+ char *name;
+ int channel_offset;
+ int timer_bit;
+ char *clk;
+ unsigned long clockevent_rating;
+};
+
+#endif /* __SH_MTU2_H__ */