import of upstream 2.4.34.4 from kernel.org
[linux-2.4.git] / arch / arm / mach-anakin / arch.c
1 /*
2  *  linux/arch/arm/mach-anakin/arch.c
3  *
4  *  Copyright (C) 2001 Aleph One Ltd. for Acunia N.V.
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 version 2 as
8  * published by the Free Software Foundation.
9  *
10  *  Changelog:
11  *   09-Apr-2001 W/TTC  Created
12  */
13
14 #include <linux/config.h>
15 #include <linux/tty.h>
16 #include <linux/init.h>
17
18 #include <asm/setup.h>
19 #include <asm/mach-types.h>
20 #include <asm/mach/arch.h>
21
22 #ifndef CONFIG_BLK_DEV_RAM_SIZE
23 #define CONFIG_BLK_DEV_RAM_SIZE 4096
24 #endif
25
26 extern void anakin_map_io(void);
27 extern void genarch_init_irq(void);
28
29 static void __init
30 fixup_anakin(struct machine_desc *desc, struct param_struct *unused,
31              char **cmdline, struct meminfo *mi)
32 {
33         ROOT_DEV = MKDEV(RAMDISK_MAJOR, 0);
34         setup_ramdisk(1, 0, 0, CONFIG_BLK_DEV_RAM_SIZE);
35         setup_initrd(0xc0800000, 4 * 1024 * 1024);
36 }
37
38
39 MACHINE_START(ANAKIN, "Anakin")
40         MAINTAINER("Wookey/Tak-Shing Chan")
41         BOOT_MEM(0x20000000, 0x40000000, 0xe0000000)
42         VIDEO(0x80000000, 0x8002db40)
43         FIXUP(fixup_anakin)
44         MAPIO(anakin_map_io)
45         INITIRQ(genarch_init_irq)
46 MACHINE_END