2 * arch/arm/mach-imx/mx1ads.c
5 * linux-2.6.7-imx/arch/arm/mach-imx/scb9328.c
6 * Copyright (c) 2004 Sascha Hauer <sascha@saschahauer.de>
8 * 2004 (c) MontaVista Software, Inc.
10 * This file is licensed under the terms of the GNU General Public
11 * License version 2. This program is licensed "as is" without any
12 * warranty of any kind, whether express or implied.
15 #include <linux/device.h>
16 #include <linux/init.h>
17 #include <linux/platform_device.h>
18 #include <asm/system.h>
19 #include <asm/hardware.h>
21 #include <asm/pgtable.h>
24 #include <asm/mach/map.h>
25 #include <asm/mach-types.h>
27 #include <asm/mach/arch.h>
28 #include <linux/interrupt.h>
31 static struct resource cs89x0_resources
[] = {
33 .start
= IMX_CS4_PHYS
+ 0x300,
34 .end
= IMX_CS4_PHYS
+ 0x300 + 16,
35 .flags
= IORESOURCE_MEM
,
38 .start
= IRQ_GPIOC(17),
40 .flags
= IORESOURCE_IRQ
,
44 static struct platform_device cs89x0_device
= {
45 .name
= "cirrus-cs89x0",
46 .num_resources
= ARRAY_SIZE(cs89x0_resources
),
47 .resource
= cs89x0_resources
,
50 static struct platform_device
*devices
[] __initdata
= {
58 imx_gpio_mode(GPIO_PORTA
| GPIO_OUT
| 2);
60 platform_add_devices(devices
, ARRAY_SIZE(devices
));
69 MACHINE_START(MX1ADS
, "Motorola MX1ADS")
70 /* Maintainer: Sascha Hauer, Pengutronix */
71 .phys_io
= 0x00200000,
72 .io_pg_offst
= ((0xe0200000) >> 18) & 0xfffc,
73 .boot_params
= 0x08000100,
74 .map_io
= mx1ads_map_io
,
75 .init_irq
= imx_init_irq
,
77 .init_machine
= mx1ads_init
,