import of upstream 2.4.34.4 from kernel.org
[linux-2.4.git] / arch / arm / mach-epxa / arch-epxa1db.c
1 /*
2  *  linux/arch/arm/mach-epxa/arch-epxa10db.c
3  *
4  *  Copyright (C) 2001 Altera Corporation
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/types.h>
21 #include <linux/sched.h>
22 #include <linux/interrupt.h>
23 #include <linux/init.h>
24
25 #include <asm/hardware.h>
26 #include <asm/irq.h>
27 #include <asm/setup.h>
28 #include <asm/mach-types.h>
29
30 #include <asm/mach/arch.h>
31
32 extern void epxa_map_io(void);
33 extern void epxa_init_irq(void);
34
35 static void __init
36 epxa1db_fixup(struct machine_desc *desc, struct param_struct *params,
37                  char **cmdline, struct meminfo *mi)
38 {
39
40         mi->nr_banks      = 1;
41         mi->bank[0].start = 0;
42         mi->bank[0].size  = (32*1024*1024);
43         mi->bank[0].node  = 0;
44
45 /*
46         ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
47         setup_ramdisk( 1, 0, 0, 8192 );
48         setup_initrd(0xc0200000, 6*1024*1024);
49 */
50 }
51
52 MACHINE_START(CAMELOT, "Altera Epxa1db")
53         MAINTAINER("Altera Corporation")
54         BOOT_MEM(0x00000000, 0x7fffc000, 0xffffc000)
55         FIXUP(epxa1db_fixup)
56         MAPIO(epxa_map_io)
57         INITIRQ(epxa_init_irq)
58         BOOT_PARAMS(0x100)
59 MACHINE_END