aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-spear3xx/spear300_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/spear300_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/spear300_evb.c')
-rw-r--r--arch/arm/mach-spear3xx/spear300_evb.c55
1 files changed, 55 insertions, 0 deletions
diff --git a/arch/arm/mach-spear3xx/spear300_evb.c b/arch/arm/mach-spear3xx/spear300_evb.c
new file mode 100644
index 000000000000..1272a385c208
--- /dev/null
+++ b/arch/arm/mach-spear3xx/spear300_evb.c
@@ -0,0 +1,55 @@
1/*
2 * arch/arm/mach-spear3xx/spear300_evb.c
3 *
4 * SPEAr300 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 /* spear300 specific devices */
25 &gpio1_device,
26};
27
28static struct platform_device *plat_devs[] __initdata = {
29 /* spear3xx specific devices */
30
31 /* spear300 specific devices */
32};
33
34static void __init spear300_evb_init(void)
35{
36 unsigned int i;
37
38 /* call spear300 machine init function */
39 spear300_init();
40
41 /* Add Platform Devices */
42 platform_add_devices(plat_devs, ARRAY_SIZE(plat_devs));
43
44 /* Add Amba Devices */
45 for (i = 0; i < ARRAY_SIZE(amba_devs); i++)
46 amba_device_register(amba_devs[i], &iomem_resource);
47}
48
49MACHINE_START(SPEAR300, "ST-SPEAR300-EVB")
50 .boot_params = 0x00000100,
51 .map_io = spear3xx_map_io,
52 .init_irq = spear3xx_init_irq,
53 .timer = &spear_sys_timer,
54 .init_machine = spear300_evb_init,
55MACHINE_END