make oldconfig will rebuild these...
[linux-2.4.21-pre4.git] / arch / arm / mach-sa1100 / itsy.c
1 /*
2  * linux/arch/arm/mach-sa1100/itsy.c
3  */
4
5 #include <linux/init.h>
6 #include <linux/kernel.h>
7 #include <linux/tty.h>
8
9 #include <asm/hardware.h>
10 #include <asm/setup.h>
11
12 #include <asm/mach/arch.h>
13 #include <asm/mach/map.h>
14 #include <asm/mach/serial_sa1100.h>
15
16 #include "generic.h"
17
18
19 static void __init
20 fixup_itsy(struct machine_desc *desc, struct param_struct *params,
21            char **cmdline, struct meminfo *mi)
22 {
23         SET_BANK( 0, 0xc0000000, 16*1024*1024 );
24         SET_BANK( 1, 0xc8000000, 16*1024*1024 );
25         SET_BANK( 2, 0xd0000000, 16*1024*1024 );
26         SET_BANK( 3, 0xd8000000, 16*1024*1024 );
27         mi->nr_banks = 4;
28 }
29
30 /* BRADFIXME The egpio addresses aren't verifiably correct. (i.e. they're most
31    likely wrong. */
32 static struct map_desc itsy_io_desc[] __initdata = {
33  /* virtual     physical    length      domain     r  w  c  b */
34   { 0xe8000000, 0x00000000, 0x02000000, DOMAIN_IO, 0, 1, 0, 0 }, /* Flash bank 0 */
35   { 0xf0000000, 0x49000000, 0x01000000, DOMAIN_IO, 0, 1, 0, 0 }, /* EGPIO 0 */
36   LAST_DESC
37 };
38
39 static void __init itsy_map_io(void)
40 {
41         sa1100_map_io();
42         iotable_init(itsy_io_desc);
43
44         sa1100_register_uart(0, 3);
45         sa1100_register_uart(1, 1);
46         sa1100_register_uart(2, 2);
47 }
48
49 MACHINE_START(ITSY, "Compaq Itsy")
50         BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000)
51         BOOT_PARAMS(0xc0000100)
52         FIXUP(fixup_itsy)
53         MAPIO(itsy_map_io)
54         INITIRQ(sa1100_init_irq)
55 MACHINE_END