aboutsummaryrefslogtreecommitdiffstats
path: root/arch/h8300
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2010-10-12 09:09:06 -0400
committerMichal Marek <mmarek@suse.cz>2010-10-12 09:09:06 -0400
commit239060b93bb30a4ad55f1ecaa512464a035cc5ba (patch)
tree77f79810e57d4fc24356eca0cd6db463e8994128 /arch/h8300
parent1408b15b98635a13bad2e2a50b3c2ae2ccdf625b (diff)
parente9203c988234aa512bd45ca32b52e21c7bbfc414 (diff)
Merge branch 'kbuild/rc-fixes' into kbuild/kconfig
We need to revert the temporary hack in 71ebc01, hence the merge.
Diffstat (limited to 'arch/h8300')
-rw-r--r--arch/h8300/Kconfig4
-rw-r--r--arch/h8300/defconfig333
-rw-r--r--arch/h8300/include/asm/ioctls.h2
-rw-r--r--arch/h8300/include/asm/local64.h1
-rw-r--r--arch/h8300/include/asm/md.h13
-rw-r--r--arch/h8300/include/asm/scatterlist.h2
-rw-r--r--arch/h8300/include/asm/termbits.h1
-rw-r--r--arch/h8300/kernel/process.c2
-rw-r--r--arch/h8300/kernel/timer/itu.c2
-rw-r--r--arch/h8300/kernel/timer/timer16.c2
-rw-r--r--arch/h8300/kernel/timer/timer8.c2
11 files changed, 9 insertions, 355 deletions
diff --git a/arch/h8300/Kconfig b/arch/h8300/Kconfig
index 3fe4d5adf9a2..65f897d8c1e9 100644
--- a/arch/h8300/Kconfig
+++ b/arch/h8300/Kconfig
@@ -55,10 +55,6 @@ config GENERIC_CALIBRATE_DELAY
55 bool 55 bool
56 default y 56 default y
57 57
58config GENERIC_TIME
59 bool
60 default y
61
62config GENERIC_BUG 58config GENERIC_BUG
63 bool 59 bool
64 depends on BUG 60 depends on BUG
diff --git a/arch/h8300/defconfig b/arch/h8300/defconfig
index 8901cdb5e75b..342f77765f02 100644
--- a/arch/h8300/defconfig
+++ b/arch/h8300/defconfig
@@ -1,61 +1,11 @@
1#
2# Automatically generated make config: don't edit
3# Linux kernel version: 2.6.25-rc1
4# Fri Feb 15 17:13:14 2008
5#
6CONFIG_H8300=y
7# CONFIG_MMU is not set
8# CONFIG_SWAP is not set
9CONFIG_ZONE_DMA=y
10# CONFIG_FPU is not set
11CONFIG_RWSEM_GENERIC_SPINLOCK=y
12# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set
13# CONFIG_ARCH_HAS_ILOG2_U32 is not set
14# CONFIG_ARCH_HAS_ILOG2_U64 is not set
15CONFIG_GENERIC_FIND_NEXT_BIT=y
16CONFIG_GENERIC_HWEIGHT=y
17CONFIG_GENERIC_HARDIRQS=y
18CONFIG_GENERIC_CALIBRATE_DELAY=y
19CONFIG_GENERIC_TIME=y
20CONFIG_TIME_LOW_RES=y
21CONFIG_ARCH_SUPPORTS_AOUT=y
22CONFIG_NO_IOPORT=y
23CONFIG_NO_DMA=y
24CONFIG_ISA=y
25# CONFIG_PCI is not set
26CONFIG_HZ=100
27CONFIG_C_SYMBOL_PREFIX=y
28CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
29
30#
31# General setup
32#
33CONFIG_EXPERIMENTAL=y 1CONFIG_EXPERIMENTAL=y
34CONFIG_BROKEN_ON_SMP=y
35CONFIG_INIT_ENV_ARG_LIMIT=32
36CONFIG_LOCALVERSION=""
37# CONFIG_LOCALVERSION_AUTO is not set 2# CONFIG_LOCALVERSION_AUTO is not set
38# CONFIG_SYSVIPC is not set
39# CONFIG_BSD_PROCESS_ACCT is not set
40# CONFIG_IKCONFIG is not set
41CONFIG_LOG_BUF_SHIFT=14 3CONFIG_LOG_BUF_SHIFT=14
42# CONFIG_CGROUPS is not set
43# CONFIG_FAIR_GROUP_SCHED is not set
44# CONFIG_SYSFS_DEPRECATED is not set
45# CONFIG_RELAY is not set
46# CONFIG_NAMESPACES is not set
47# CONFIG_BLK_DEV_INITRD is not set
48CONFIG_CC_OPTIMIZE_FOR_SIZE=y
49CONFIG_SYSCTL=y
50CONFIG_EMBEDDED=y 4CONFIG_EMBEDDED=y
51# CONFIG_UID16 is not set 5# CONFIG_UID16 is not set
52# CONFIG_SYSCTL_SYSCALL is not set 6# CONFIG_SYSCTL_SYSCALL is not set
53# CONFIG_KALLSYMS is not set 7# CONFIG_KALLSYMS is not set
54# CONFIG_HOTPLUG is not set 8# CONFIG_HOTPLUG is not set
55CONFIG_PRINTK=y
56CONFIG_BUG=y
57CONFIG_ELF_CORE=y
58# CONFIG_COMPAT_BRK is not set
59# CONFIG_BASE_FULL is not set 9# CONFIG_BASE_FULL is not set
60# CONFIG_FUTEX is not set 10# CONFIG_FUTEX is not set
61# CONFIG_EPOLL is not set 11# CONFIG_EPOLL is not set
@@ -63,311 +13,30 @@ CONFIG_ELF_CORE=y
63# CONFIG_TIMERFD is not set 13# CONFIG_TIMERFD is not set
64# CONFIG_EVENTFD is not set 14# CONFIG_EVENTFD is not set
65# CONFIG_VM_EVENT_COUNTERS is not set 15# CONFIG_VM_EVENT_COUNTERS is not set
66# CONFIG_SLAB is not set 16# CONFIG_COMPAT_BRK is not set
67# CONFIG_SLUB is not set
68CONFIG_SLOB=y 17CONFIG_SLOB=y
69# CONFIG_PROFILING is not set
70# CONFIG_MARKERS is not set
71# CONFIG_HAVE_OPROFILE is not set
72# CONFIG_HAVE_KPROBES is not set
73CONFIG_TINY_SHMEM=y
74CONFIG_BASE_SMALL=1
75# CONFIG_MODULES is not set
76CONFIG_BLOCK=y
77# CONFIG_LBD is not set
78# CONFIG_BLK_DEV_IO_TRACE is not set
79# CONFIG_LSF is not set
80# CONFIG_BLK_DEV_BSG is not set 18# CONFIG_BLK_DEV_BSG is not set
81
82#
83# IO Schedulers
84#
85CONFIG_IOSCHED_NOOP=y
86# CONFIG_IOSCHED_AS is not set
87# CONFIG_IOSCHED_DEADLINE is not set 19# CONFIG_IOSCHED_DEADLINE is not set
88# CONFIG_IOSCHED_CFQ is not set 20# CONFIG_IOSCHED_CFQ is not set
89# CONFIG_DEFAULT_AS is not set
90# CONFIG_DEFAULT_DEADLINE is not set
91# CONFIG_DEFAULT_CFQ is not set
92CONFIG_DEFAULT_NOOP=y
93CONFIG_DEFAULT_IOSCHED="noop"
94CONFIG_CLASSIC_RCU=y
95# CONFIG_PREEMPT_RCU is not set
96
97#
98# Processor type and features
99#
100CONFIG_H8300H_GENERIC=y
101# CONFIG_H8300H_AKI3068NET is not set
102# CONFIG_H8300H_H8MAX is not set
103# CONFIG_H8300H_SIM is not set
104# CONFIG_H8S_GENERIC is not set
105# CONFIG_H8S_EDOSK2674 is not set
106# CONFIG_H8S_SIM is not set
107
108#
109# Detail Selection
110#
111# CONFIG_H83002 is not set
112CONFIG_H83007=y 21CONFIG_H83007=y
113# CONFIG_H83048 is not set
114# CONFIG_H83068 is not set
115CONFIG_CPU_CLOCK=20000
116CONFIG_RAMKERNEL=y
117# CONFIG_ROMKERNEL is not set
118CONFIG_CPU_H8300H=y
119# CONFIG_PREEMPT is not set
120CONFIG_SELECT_MEMORY_MODEL=y
121CONFIG_FLATMEM_MANUAL=y
122# CONFIG_DISCONTIGMEM_MANUAL is not set
123# CONFIG_SPARSEMEM_MANUAL is not set
124CONFIG_FLATMEM=y
125CONFIG_FLAT_NODE_MEM_MAP=y
126# CONFIG_SPARSEMEM_STATIC is not set
127# CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not set
128CONFIG_SPLIT_PTLOCK_CPUS=4
129# CONFIG_RESOURCES_64BIT is not set
130CONFIG_ZONE_DMA_FLAG=1
131CONFIG_VIRT_TO_BUS=y
132
133#
134# Executable file formats
135#
136CONFIG_BINFMT_FLAT=y 22CONFIG_BINFMT_FLAT=y
137CONFIG_BINFMT_ZFLAT=y 23CONFIG_BINFMT_ZFLAT=y
138# CONFIG_BINFMT_SHARED_FLAT is not set
139CONFIG_BINFMT_MISC=y 24CONFIG_BINFMT_MISC=y
140
141#
142# Networking
143#
144# CONFIG_NET is not set
145
146#
147# Generic Driver Options
148#
149CONFIG_STANDALONE=y
150# CONFIG_PREVENT_FIRMWARE_BUILD is not set 25# CONFIG_PREVENT_FIRMWARE_BUILD is not set
151# CONFIG_SYS_HYPERVISOR is not set
152CONFIG_MTD=y 26CONFIG_MTD=y
153# CONFIG_MTD_DEBUG is not set
154# CONFIG_MTD_CONCAT is not set
155CONFIG_MTD_PARTITIONS=y 27CONFIG_MTD_PARTITIONS=y
156CONFIG_MTD_REDBOOT_PARTS=y 28CONFIG_MTD_REDBOOT_PARTS=y
157CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1
158# CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED is not set
159# CONFIG_MTD_REDBOOT_PARTS_READONLY is not set
160# CONFIG_MTD_CMDLINE_PARTS is not set
161
162#
163# User Modules And Translation Layers
164#
165CONFIG_MTD_CHAR=y 29CONFIG_MTD_CHAR=y
166# CONFIG_MTD_BLKDEVS is not set
167# CONFIG_MTD_BLOCK is not set
168# CONFIG_MTD_BLOCK_RO is not set
169# CONFIG_FTL is not set
170# CONFIG_NFTL is not set
171# CONFIG_INFTL is not set
172# CONFIG_RFD_FTL is not set
173# CONFIG_SSFDC is not set
174# CONFIG_MTD_OOPS is not set
175
176#
177# RAM/ROM/Flash chip drivers
178#
179# CONFIG_MTD_CFI is not set
180# CONFIG_MTD_JEDECPROBE is not set
181CONFIG_MTD_MAP_BANK_WIDTH_1=y
182CONFIG_MTD_MAP_BANK_WIDTH_2=y
183CONFIG_MTD_MAP_BANK_WIDTH_4=y
184# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
185# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
186# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
187CONFIG_MTD_CFI_I1=y
188CONFIG_MTD_CFI_I2=y
189# CONFIG_MTD_CFI_I4 is not set
190# CONFIG_MTD_CFI_I8 is not set
191CONFIG_MTD_RAM=y 30CONFIG_MTD_RAM=y
192CONFIG_MTD_ROM=y 31CONFIG_MTD_ROM=y
193# CONFIG_MTD_ABSENT is not set
194
195#
196# Mapping drivers for chip access
197#
198# CONFIG_MTD_COMPLEX_MAPPINGS is not set
199# CONFIG_MTD_PHYSMAP is not set
200CONFIG_MTD_UCLINUX=y 32CONFIG_MTD_UCLINUX=y
201# CONFIG_MTD_PLATRAM is not set
202
203#
204# Self-contained MTD device drivers
205#
206# CONFIG_MTD_SLRAM is not set
207# CONFIG_MTD_PHRAM is not set
208# CONFIG_MTD_MTDRAM is not set
209# CONFIG_MTD_BLOCK2MTD is not set
210
211#
212# Disk-On-Chip Device Drivers
213#
214# CONFIG_MTD_DOC2000 is not set
215# CONFIG_MTD_DOC2001 is not set
216# CONFIG_MTD_DOC2001PLUS is not set
217# CONFIG_MTD_NAND is not set
218# CONFIG_MTD_ONENAND is not set
219
220#
221# UBI - Unsorted block images
222#
223# CONFIG_MTD_UBI is not set
224# CONFIG_BLK_DEV is not set 33# CONFIG_BLK_DEV is not set
225CONFIG_HAVE_IDE=y
226# CONFIG_IDE is not set
227
228#
229# Input device support
230#
231# CONFIG_INPUT is not set 34# CONFIG_INPUT is not set
232
233#
234# Hardware I/O ports
235#
236# CONFIG_SERIO is not set 35# CONFIG_SERIO is not set
237# CONFIG_GAMEPORT is not set
238
239#
240# Character devices
241#
242# CONFIG_VT is not set
243
244#
245# Unix98 PTY support
246#
247# CONFIG_UNIX98_PTYS is not set
248
249#
250# Serial drivers
251#
252# CONFIG_SERIAL_8250 is not set
253
254#
255# Non-8250 serial port support
256#
257CONFIG_SERIAL_SH_SCI=y
258CONFIG_SERIAL_SH_SCI_NR_UARTS=2
259CONFIG_SERIAL_SH_SCI_CONSOLE=y
260CONFIG_SERIAL_CORE=y
261CONFIG_SERIAL_CORE_CONSOLE=y
262# CONFIG_I2C is not set
263# CONFIG_HWMON is not set 36# CONFIG_HWMON is not set
264# CONFIG_USB_SUPPORT is not set 37# CONFIG_USB_SUPPORT is not set
265
266#
267# File systems
268#
269# CONFIG_EXT2_FS is not set
270# CONFIG_EXT3_FS is not set
271# CONFIG_EXT4DEV_FS is not set
272# CONFIG_REISERFS_FS is not set
273# CONFIG_JFS_FS is not set
274# CONFIG_FS_POSIX_ACL is not set
275# CONFIG_XFS_FS is not set
276# CONFIG_GFS2_FS is not set
277# CONFIG_DNOTIFY is not set 38# CONFIG_DNOTIFY is not set
278# CONFIG_INOTIFY is not set
279# CONFIG_QUOTA is not set
280# CONFIG_AUTOFS_FS is not set
281# CONFIG_AUTOFS4_FS is not set
282# CONFIG_FUSE_FS is not set
283
284#
285# CD-ROM/DVD Filesystems
286#
287# CONFIG_ISO9660_FS is not set
288# CONFIG_UDF_FS is not set
289
290#
291# DOS/FAT/NT Filesystems
292#
293# CONFIG_MSDOS_FS is not set
294# CONFIG_VFAT_FS is not set
295# CONFIG_NTFS_FS is not set
296
297#
298# Pseudo filesystems
299#
300CONFIG_PROC_FS=y
301CONFIG_PROC_SYSCTL=y
302CONFIG_SYSFS=y
303# CONFIG_TMPFS is not set
304# CONFIG_HUGETLB_PAGE is not set
305# CONFIG_CONFIGFS_FS is not set
306
307#
308# Miscellaneous filesystems
309#
310# CONFIG_ADFS_FS is not set
311# CONFIG_AFFS_FS is not set
312# CONFIG_HFS_FS is not set
313# CONFIG_HFSPLUS_FS is not set
314# CONFIG_BEFS_FS is not set
315# CONFIG_BFS_FS is not set
316# CONFIG_EFS_FS is not set
317# CONFIG_JFFS2_FS is not set
318# CONFIG_CRAMFS is not set
319# CONFIG_VXFS_FS is not set
320# CONFIG_MINIX_FS is not set
321# CONFIG_HPFS_FS is not set
322# CONFIG_QNX4FS_FS is not set
323CONFIG_ROMFS_FS=y 39CONFIG_ROMFS_FS=y
324# CONFIG_SYSV_FS is not set
325# CONFIG_UFS_FS is not set
326
327#
328# Partition Types
329#
330# CONFIG_PARTITION_ADVANCED is not set
331CONFIG_MSDOS_PARTITION=y
332# CONFIG_NLS is not set
333
334#
335# Kernel hacking
336#
337# CONFIG_PRINTK_TIME is not set
338# CONFIG_ENABLE_WARN_DEPRECATED is not set 40# CONFIG_ENABLE_WARN_DEPRECATED is not set
339# CONFIG_ENABLE_MUST_CHECK is not set 41# CONFIG_ENABLE_MUST_CHECK is not set
340# CONFIG_MAGIC_SYSRQ is not set
341# CONFIG_UNUSED_SYMBOLS is not set
342# CONFIG_DEBUG_FS is not set
343# CONFIG_HEADERS_CHECK is not set
344# CONFIG_DEBUG_KERNEL is not set
345# CONFIG_SAMPLES is not set
346# CONFIG_FULLDEBUG is not set
347# CONFIG_HIGHPROFILE is not set
348# CONFIG_NO_KERNEL_MSG is not set
349# CONFIG_SYSCALL_PRINT is not set
350# CONFIG_GDB_DEBUG is not set
351# CONFIG_SH_STANDARD_BIOS is not set
352# CONFIG_DEFAULT_CMDLINE is not set
353# CONFIG_BLKDEV_RESERVE is not set
354
355#
356# Security options
357#
358# CONFIG_KEYS is not set
359# CONFIG_SECURITY is not set
360# CONFIG_SECURITY_FILE_CAPABILITIES is not set
361# CONFIG_CRYPTO is not set
362
363#
364# Library routines
365#
366# CONFIG_CRC_CCITT is not set
367# CONFIG_CRC16 is not set
368# CONFIG_CRC_ITU_T is not set
369# CONFIG_CRC32 is not set 42# CONFIG_CRC32 is not set
370# CONFIG_CRC7 is not set
371# CONFIG_LIBCRC32C is not set
372CONFIG_ZLIB_INFLATE=y
373CONFIG_HAS_IOMEM=y
diff --git a/arch/h8300/include/asm/ioctls.h b/arch/h8300/include/asm/ioctls.h
index 98a53d067269..b6b249f9f308 100644
--- a/arch/h8300/include/asm/ioctls.h
+++ b/arch/h8300/include/asm/ioctls.h
@@ -53,6 +53,7 @@
53#define TCSETSF2 _IOW('T',0x2D, struct termios2) 53#define TCSETSF2 _IOW('T',0x2D, struct termios2)
54#define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ 54#define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
55#define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */ 55#define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
56#define TIOCSIG _IOW('T',0x36, int) /* Generate signal on Pty slave */
56 57
57#define FIONCLEX 0x5450 /* these numbers need to be adjusted. */ 58#define FIONCLEX 0x5450 /* these numbers need to be adjusted. */
58#define FIOCLEX 0x5451 59#define FIOCLEX 0x5451
@@ -79,6 +80,7 @@
79#define TIOCPKT_START 8 80#define TIOCPKT_START 8
80#define TIOCPKT_NOSTOP 16 81#define TIOCPKT_NOSTOP 16
81#define TIOCPKT_DOSTOP 32 82#define TIOCPKT_DOSTOP 32
83#define TIOCPKT_IOCTL 64
82 84
83#define TIOCSER_TEMT 0x01 /* Transmitter physically empty */ 85#define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
84 86
diff --git a/arch/h8300/include/asm/local64.h b/arch/h8300/include/asm/local64.h
new file mode 100644
index 000000000000..36c93b5cc239
--- /dev/null
+++ b/arch/h8300/include/asm/local64.h
@@ -0,0 +1 @@
#include <asm-generic/local64.h>
diff --git a/arch/h8300/include/asm/md.h b/arch/h8300/include/asm/md.h
deleted file mode 100644
index 1b7300e0a175..000000000000
--- a/arch/h8300/include/asm/md.h
+++ /dev/null
@@ -1,13 +0,0 @@
1/*
2 * md.h: High speed xor_block operation for RAID4/5
3 *
4 */
5
6#ifndef __ASM_MD_H
7#define __ASM_MD_H
8
9/* #define HAVE_ARCH_XORBLOCK */
10
11#define MD_XORBLOCK_ALIGNMENT sizeof(long)
12
13#endif /* __ASM_MD_H */
diff --git a/arch/h8300/include/asm/scatterlist.h b/arch/h8300/include/asm/scatterlist.h
index de08a4a2cc1c..82130eda0e5f 100644
--- a/arch/h8300/include/asm/scatterlist.h
+++ b/arch/h8300/include/asm/scatterlist.h
@@ -3,6 +3,4 @@
3 3
4#include <asm-generic/scatterlist.h> 4#include <asm-generic/scatterlist.h>
5 5
6#define ISA_DMA_THRESHOLD (0xffffffff)
7
8#endif /* !(_H8300_SCATTERLIST_H) */ 6#endif /* !(_H8300_SCATTERLIST_H) */
diff --git a/arch/h8300/include/asm/termbits.h b/arch/h8300/include/asm/termbits.h
index 31eca81db3f7..3287a6244d74 100644
--- a/arch/h8300/include/asm/termbits.h
+++ b/arch/h8300/include/asm/termbits.h
@@ -179,6 +179,7 @@ struct ktermios {
179#define FLUSHO 0010000 179#define FLUSHO 0010000
180#define PENDIN 0040000 180#define PENDIN 0040000
181#define IEXTEN 0100000 181#define IEXTEN 0100000
182#define EXTPROC 0200000
182 183
183 184
184/* tcflow() and TCXONC use these */ 185/* tcflow() and TCXONC use these */
diff --git a/arch/h8300/kernel/process.c b/arch/h8300/kernel/process.c
index 8c8b0ffa6ad7..8b7b78d77d5c 100644
--- a/arch/h8300/kernel/process.c
+++ b/arch/h8300/kernel/process.c
@@ -212,7 +212,7 @@ int copy_thread(unsigned long clone_flags,
212/* 212/*
213 * sys_execve() executes a new program. 213 * sys_execve() executes a new program.
214 */ 214 */
215asmlinkage int sys_execve(char *name, char **argv, char **envp,int dummy,...) 215asmlinkage int sys_execve(const char *name, char **argv, char **envp,int dummy,...)
216{ 216{
217 int error; 217 int error;
218 char * filename; 218 char * filename;
diff --git a/arch/h8300/kernel/timer/itu.c b/arch/h8300/kernel/timer/itu.c
index 4883ba7103a8..a2ae5e952137 100644
--- a/arch/h8300/kernel/timer/itu.c
+++ b/arch/h8300/kernel/timer/itu.c
@@ -73,7 +73,7 @@ void __init h8300_timer_setup(void)
73 73
74 setup_irq(ITUIRQ, &itu_irq); 74 setup_irq(ITUIRQ, &itu_irq);
75 75
76 /* initalize timer */ 76 /* initialize timer */
77 ctrl_outb(0, TSTR); 77 ctrl_outb(0, TSTR);
78 ctrl_outb(CCLR0 | div, ITUBASE + TCR); 78 ctrl_outb(CCLR0 | div, ITUBASE + TCR);
79 ctrl_outb(0x01, ITUBASE + TIER); 79 ctrl_outb(0x01, ITUBASE + TIER);
diff --git a/arch/h8300/kernel/timer/timer16.c b/arch/h8300/kernel/timer/timer16.c
index 042dbb53f3fb..ae0d38161139 100644
--- a/arch/h8300/kernel/timer/timer16.c
+++ b/arch/h8300/kernel/timer/timer16.c
@@ -68,7 +68,7 @@ void __init h8300_timer_setup(void)
68 68
69 setup_irq(_16IRQ, &timer16_irq); 69 setup_irq(_16IRQ, &timer16_irq);
70 70
71 /* initalize timer */ 71 /* initialize timer */
72 ctrl_outb(0, TSTR); 72 ctrl_outb(0, TSTR);
73 ctrl_outb(CCLR0 | div, _16BASE + TCR); 73 ctrl_outb(CCLR0 | div, _16BASE + TCR);
74 ctrl_outw(cnt, _16BASE + GRA); 74 ctrl_outw(cnt, _16BASE + GRA);
diff --git a/arch/h8300/kernel/timer/timer8.c b/arch/h8300/kernel/timer/timer8.c
index 38be0cabef0d..3946c0fa8374 100644
--- a/arch/h8300/kernel/timer/timer8.c
+++ b/arch/h8300/kernel/timer/timer8.c
@@ -94,7 +94,7 @@ void __init h8300_timer_setup(void)
94 ctrl_bclr(0, MSTPCRL) 94 ctrl_bclr(0, MSTPCRL)
95#endif 95#endif
96 96
97 /* initalize timer */ 97 /* initialize timer */
98 ctrl_outw(cnt, _8BASE + TCORA); 98 ctrl_outw(cnt, _8BASE + TCORA);
99 ctrl_outw(0x0000, _8BASE + _8TCSR); 99 ctrl_outw(0x0000, _8BASE + _8TCSR);
100 ctrl_outw((CMIEA|CCLR_CMA|CKS2) << 8 | div, 100 ctrl_outw((CMIEA|CCLR_CMA|CKS2) << 8 | div,