bc4e814e |
1 | /* |
2 | * arch/arm/mach-spear3xx/spear300.c |
3 | * |
4 | * SPEAr300 machine source file |
5 | * |
6 | * Copyright (C) 2009 ST Microelectronics |
7 | * Viresh Kumar<viresh.kumar@st.com> |
8 | * |
9 | * This file is licensed under the terms of the GNU General Public |
10 | * License version 2. This program is licensed "as is" without any |
11 | * warranty of any kind, whether express or implied. |
12 | */ |
13 | |
14 | #include <linux/types.h> |
15 | #include <linux/amba/pl061.h> |
16 | #include <linux/ptrace.h> |
17 | #include <asm/irq.h> |
18 | #include <mach/generic.h> |
19 | #include <mach/spear.h> |
20 | |
21 | /* Add spear300 specific devices here */ |
22 | /* arm gpio1 device registeration */ |
23 | static struct pl061_platform_data gpio1_plat_data = { |
24 | .gpio_base = 8, |
25 | .irq_base = SPEAR_GPIO1_INT_BASE, |
26 | }; |
27 | |
28 | struct amba_device gpio1_device = { |
29 | .dev = { |
30 | .init_name = "gpio1", |
31 | .platform_data = &gpio1_plat_data, |
32 | }, |
33 | .res = { |
34 | .start = SPEAR300_GPIO_BASE, |
35 | .end = SPEAR300_GPIO_BASE + SPEAR300_GPIO_SIZE - 1, |
36 | .flags = IORESOURCE_MEM, |
37 | }, |
38 | .irq = {IRQ_GEN_RAS_1, NO_IRQ}, |
39 | }; |
40 | |
41 | void __init spear300_init(void) |
42 | { |
43 | /* call spear3xx family common init function */ |
44 | spear3xx_init(); |
45 | } |