diff options
author | viresh kumar <viresh.kumar@st.com> | 2010-04-01 07:30:58 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-04-14 06:34:36 -0400 |
commit | bc4e814e5d5e2851f0a0679eaad14f60abae2a6d (patch) | |
tree | a03b60895694093f9306ebe4158d99725de35f32 /arch/arm/mach-spear3xx/spear300.c | |
parent | cee37e501ea34958d6d33d75d2bd21d9c343e379 (diff) |
ARM: 6017/1: ST SPEAr: Added source files for SPEAr3xx machine family
Reviewed-by: Linus Walleij <linux.walleij@stericsson.com>
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-spear3xx/spear300.c')
-rw-r--r-- | arch/arm/mach-spear3xx/spear300.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/arch/arm/mach-spear3xx/spear300.c b/arch/arm/mach-spear3xx/spear300.c new file mode 100644 index 000000000000..63aca8fc3ebb --- /dev/null +++ b/arch/arm/mach-spear3xx/spear300.c | |||
@@ -0,0 +1,45 @@ | |||
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 | } | ||