mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
![Magnus Damm](/assets/img/avatar_default.png)
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>
13 lines
237 B
C
13 lines
237 B
C
#ifndef __SH_CMT_H__
|
|
#define __SH_CMT_H__
|
|
|
|
struct sh_cmt_config {
|
|
char *name;
|
|
unsigned long channel_offset;
|
|
int timer_bit;
|
|
char *clk;
|
|
unsigned long clockevent_rating;
|
|
unsigned long clocksource_rating;
|
|
};
|
|
|
|
#endif /* __SH_CMT_H__ */
|