original comment: +Wilson03172004,marked due to this pci host does not support MWI
[linux-2.4.git] / arch / arm / mach-integrator / arch.c
1 /*
2  *  linux/arch/arm/mach-integrator/arch.c
3  *
4  *  Copyright (C) 2000 Deep Blue Solutions Ltd
5  *
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.
10  *
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.
15  *
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
19  */
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>
25
26 #include <asm/hardware.h>
27 #include <asm/irq.h>
28 #include <asm/setup.h>
29 #include <asm/mach-types.h>
30
31 #include <asm/mach/arch.h>
32 #include <asm/mach/amba_kmi.h>
33
34 extern void integrator_map_io(void);
35 extern void integrator_init_irq(void);
36
37 #ifdef CONFIG_KMI_KEYB
38 static struct kmi_info integrator_keyboard __initdata = {
39         .base           = IO_ADDRESS(KMI0_BASE),
40         .irq            = IRQ_KMIINT0,
41         .divisor        = 24 / 8 - 1,
42         .type           = KMI_KEYBOARD,
43 };
44
45 static struct kmi_info integrator_mouse __initdata = {
46         .base           = IO_ADDRESS(KMI1_BASE),
47         .irq            = IRQ_KMIINT1,
48         .divisor        = 24 / 8 - 1,
49         .type           = KMI_MOUSE,
50 };
51 #endif
52
53 static void __init
54 integrator_fixup(struct machine_desc *desc, struct param_struct *unused,
55                  char **cmdline, struct meminfo *mi)
56 {
57 #ifdef CONFIG_KMI_KEYB
58         register_kmi(&integrator_keyboard);
59         register_kmi(&integrator_mouse);
60 #endif
61 }
62
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)
70 MACHINE_END