initial commit with v2.6.9
[linux-2.6.9-moxart.git] / arch / arm / mach-iop3xx / iop321-setup.c
blobe92f77fbbf317536141abdba4c427fe62c237fba
1 /*
2 * linux/arch/arm/mach-iop3xx/iop321-setup.c
4 * Author: Nicolas Pitre <nico@cam.org>
5 * Copyright (C) 2001 MontaVista Software, Inc.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
12 #include <linux/config.h>
13 #include <linux/init.h>
14 #include <linux/major.h>
15 #include <linux/fs.h>
17 #include <asm/setup.h>
18 #include <asm/system.h>
19 #include <asm/memory.h>
20 #include <asm/hardware.h>
21 #include <asm/mach-types.h>
22 #include <asm/mach/arch.h>
24 #ifdef CONFIG_ARCH_IQ80321
25 extern void iq80321_map_io(void);
26 extern void iop321_init_irq(void);
27 extern void iop321_init_time(void);
28 #endif
30 #ifdef CONFIG_ARCH_IQ31244
31 extern void iq31244_map_io(void);
32 extern void iop321_init_irq(void);
33 extern void iop321_init_time(void);
34 #endif
36 static void __init
37 fixup_iop321(struct machine_desc *desc, struct tag *tags,
38 char **cmdline, struct meminfo *mi)
42 #if defined(CONFIG_ARCH_IQ80321)
43 MACHINE_START(IQ80321, "Intel IQ80321")
44 MAINTAINER("Intel Corporation")
45 BOOT_MEM(PHYS_OFFSET, IQ80321_UART, 0xfe800000)
46 FIXUP(fixup_iop321)
47 MAPIO(iq80321_map_io)
48 INITIRQ(iop321_init_irq)
49 INITTIME(iop321_init_time)
50 BOOT_PARAMS(0xa0000100)
51 MACHINE_END
52 #elif defined(CONFIG_ARCH_IQ31244)
53 MACHINE_START(IQ31244, "Intel IQ31244")
54 MAINTAINER("Intel Corp.")
55 BOOT_MEM(PHYS_OFFSET, IQ31244_UART, IQ31244_UART)
56 MAPIO(iq31244_map_io)
57 INITIRQ(iop321_init_irq)
58 INITTIME(iop321_init_time)
59 BOOT_PARAMS(0xa0000100)
60 MACHINE_END
61 #else
62 #error No machine descriptor defined for this IOP3XX implementation
63 #endif