2 * linux/arch/arm/mach-integrator/arch.c
4 * Copyright (C) 2000 Deep Blue Solutions Ltd
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 #include <linux/config.h>
21 #include <linux/types.h>
22 #include <linux/sched.h>
23 #include <linux/interrupt.h>
24 #include <linux/init.h>
26 #include <asm/hardware.h>
28 #include <asm/setup.h>
29 #include <asm/mach-types.h>
31 #include <asm/mach/arch.h>
32 #include <asm/mach/amba_kmi.h>
34 extern void integrator_map_io(void);
35 extern void integrator_init_irq(void);
37 #ifdef CONFIG_KMI_KEYB
38 static struct kmi_info integrator_keyboard __initdata = {
39 .base = IO_ADDRESS(KMI0_BASE),
41 .divisor = 24 / 8 - 1,
45 static struct kmi_info integrator_mouse __initdata = {
46 .base = IO_ADDRESS(KMI1_BASE),
48 .divisor = 24 / 8 - 1,
54 integrator_fixup(struct machine_desc *desc, struct param_struct *unused,
55 char **cmdline, struct meminfo *mi)
57 #ifdef CONFIG_KMI_KEYB
58 register_kmi(&integrator_keyboard);
59 register_kmi(&integrator_mouse);
63 MACHINE_START(INTEGRATOR, "ARM-Integrator")
64 MAINTAINER("ARM Ltd/Deep Blue Solutions Ltd")
65 BOOT_MEM(0x00000000, 0x16000000, 0xf1600000)
66 BOOT_PARAMS(0x00000100)
67 FIXUP(integrator_fixup)
68 MAPIO(integrator_map_io)
69 INITIRQ(integrator_init_irq)