10 #include <linux/errno.h>
11 #include <linux/sched.h>
12 #include <linux/kernel.h>
14 #include <linux/string.h>
22 #include <asm/timer.h>
23 #if defined(CONFIG_CPU_H8300H)
26 #if defined(CONFIG_CPU_H8S)
33 #if defined(CONFIG_H8300_TIMER8_CH0)
35 #ifdef CONFIG_CPU_H8300H
41 #elif defined(CONFIG_H8300_TIMER8_CH2)
42 #ifdef CONFIG_CPU_H8300H
49 #error Unknown timer channel.
80 static const int __initconst divide_rate[] = {8, 64, 8192};
92 #if defined(CONFIG_CPU_H8S)
98 ctrl_outw(cnt, _8BASE +
TCORA);
99 ctrl_outw(0x0000, _8BASE +
_8TCSR);