]>
Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | /* |
2 | * linux/arch/arm/mach-clps711x/cdb89712.c | |
3 | * | |
4 | * Copyright (C) 2000-2001 Deep Blue Solutions Ltd | |
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/kernel.h> | |
21 | #include <linux/init.h> | |
22 | #include <linux/types.h> | |
23 | #include <linux/string.h> | |
24 | #include <linux/mm.h> | |
fced80c7 | 25 | #include <linux/io.h> |
200daa36 AS |
26 | #include <linux/interrupt.h> |
27 | #include <linux/platform_device.h> | |
1da177e4 | 28 | |
a09e64fb | 29 | #include <mach/hardware.h> |
1da177e4 LT |
30 | #include <asm/pgtable.h> |
31 | #include <asm/page.h> | |
32 | #include <asm/setup.h> | |
33 | #include <asm/mach-types.h> | |
34 | #include <asm/mach/arch.h> | |
35 | #include <asm/mach/map.h> | |
36 | ||
37 | #include "common.h" | |
38 | ||
200daa36 AS |
39 | #define CDB89712_CS8900_BASE (CS2_PHYS_BASE + 0x300) |
40 | #define CDB89712_CS8900_IRQ (IRQ_EINT3) | |
41 | ||
42 | static struct resource cdb89712_cs8900_resource[] __initdata = { | |
43 | DEFINE_RES_MEM(CDB89712_CS8900_BASE, SZ_1K), | |
44 | DEFINE_RES_IRQ(CDB89712_CS8900_IRQ), | |
1da177e4 LT |
45 | }; |
46 | ||
200daa36 | 47 | static void __init cdb89712_init(void) |
1da177e4 | 48 | { |
200daa36 AS |
49 | platform_device_register_simple("cs89x0", 0, cdb89712_cs8900_resource, |
50 | ARRAY_SIZE(cdb89712_cs8900_resource)); | |
1da177e4 LT |
51 | } |
52 | ||
53 | MACHINE_START(CDB89712, "Cirrus-CDB89712") | |
e9dea0c6 | 54 | /* Maintainer: Ray Lehtiniemi */ |
6244fa9c | 55 | .atag_offset = 0x100, |
200daa36 | 56 | .map_io = clps711x_map_io, |
e9dea0c6 | 57 | .init_irq = clps711x_init_irq, |
1da177e4 | 58 | .timer = &clps711x_timer, |
200daa36 | 59 | .init_machine = cdb89712_init, |
6c000712 | 60 | .restart = clps711x_restart, |
1da177e4 | 61 | MACHINE_END |