10 #include <linux/errno.h>
11 #include <linux/sched.h>
12 #include <linux/kernel.h>
14 #include <linux/string.h>
18 #include <linux/timex.h>
20 #include <asm/segment.h>
25 #if CONFIG_H8300_ITU_CH == 0
26 #define ITUBASE 0xffff64
28 #elif CONFIG_H8300_ITU_CH == 1
29 #define ITUBASE 0xffff6e
31 #elif CONFIG_H8300_ITU_CH == 2
32 #define ITUBASE 0xffff78
34 #elif CONFIG_H8300_ITU_CH == 3
35 #define ITUBASE 0xffff82
37 #elif CONFIG_H8300_ITU_CH == 4
38 #define ITUBASE 0xffff92
41 #error Unknown timer channel.
65 static const int __initconst divide_rate[] = {1, 2, 4, 8};
81 ctrl_bset(CONFIG_H8300_ITU_CH,
TSTR);