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>
This commit is contained in:
Magnus Damm
2009-04-30 07:02:49 +00:00
committed by Paul Mundt
parent 7563431107
commit d5ed4c2e5c
4 changed files with 381 additions and 0 deletions
+12
View File
@@ -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__ */