aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-spear3xx/spear310_evb.c
diff options
context:
space:
mode:
authorviresh kumar <viresh.kumar@st.com>2010-04-01 07:30:58 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-04-14 06:34:36 -0400
commitbc4e814e5d5e2851f0a0679eaad14f60abae2a6d (patch)
treea03b60895694093f9306ebe4158d99725de35f32 /arch/arm/mach-spear3xx/spear310_evb.c
parentcee37e501ea34958d6d33d75d2bd21d9c343e379 (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/spear310_evb.c')
-rw-r--r--arch/arm/mach-spear3xx/spear310_evb.c54
1 files changed, 54 insertions, 0 deletions
diff --git a/arch/arm/mach-spear3xx/spear310_evb.c b/arch/arm/mach-spear3xx/spear310_evb.c
new file mode 100644
index 000000000000..e781b2b7f137
--- /dev/null
+++ b/arch/arm/mach-spear3xx/spear310_evb.c
@@ -0,0 +1,54 @@
1/*
2 * arch/arm/mach-spear3xx/spear310_evb.c
3 *
4 * SPEAr310 evaluation board 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 <asm/mach/arch.h>
15#include <asm/mach-types.h>
16#include <mach/generic.h>
17#include <mach/spear.h>
18
19static struct amba_device *amba_devs[] __initdata = {
20 /* spear3xx specific devices */
21 &gpio_device,
22 &uart_device,
23
24 /* spear310 specific devices */
25};
26
27static struct platform_device *plat_devs[] __initdata = {
28 /* spear3xx specific devices */
29
30 /* spear310 specific devices */
31};
32
33static void __init spear310_evb_init(void)
34{
35 unsigned int i;
36
37 /* call spear310 machine init function */
38 spear310_init();
39
40 /* Add Platform Devices */
41 platform_add_devices(plat_devs, ARRAY_SIZE(plat_devs));
42
43 /* Add Amba Devices */
44 for (i = 0; i < ARRAY_SIZE(amba_devs); i++)
45 amba_device_register(amba_devs[i], &iomem_resource);
46}
47
48MACHINE_START(SPEAR310, "ST-SPEAR310-EVB")
49 .boot_params = 0x00000100,
50 .map_io = spear3xx_map_io,
51 .init_irq = spear3xx_init_irq,
52 .timer = &spear_sys_timer,
53 .init_machine = spear310_evb_init,
54MACHINE_END