diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /arch/arm/mach-spear3xx/spear310_evb.c | |
parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) |
Diffstat (limited to 'arch/arm/mach-spear3xx/spear310_evb.c')
-rw-r--r-- | arch/arm/mach-spear3xx/spear310_evb.c | 78 |
1 files changed, 78 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 00000000000..c8684ce1f9b --- /dev/null +++ b/arch/arm/mach-spear3xx/spear310_evb.c | |||
@@ -0,0 +1,78 @@ | |||
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/hardware.h> | ||
18 | |||
19 | /* padmux devices to enable */ | ||
20 | static struct pmx_dev *pmx_devs[] = { | ||
21 | /* spear3xx specific devices */ | ||
22 | &spear3xx_pmx_i2c, | ||
23 | &spear3xx_pmx_ssp, | ||
24 | &spear3xx_pmx_gpio_pin0, | ||
25 | &spear3xx_pmx_gpio_pin1, | ||
26 | &spear3xx_pmx_gpio_pin2, | ||
27 | &spear3xx_pmx_gpio_pin3, | ||
28 | &spear3xx_pmx_gpio_pin4, | ||
29 | &spear3xx_pmx_gpio_pin5, | ||
30 | &spear3xx_pmx_uart0, | ||
31 | |||
32 | /* spear310 specific devices */ | ||
33 | &spear310_pmx_emi_cs_0_1_4_5, | ||
34 | &spear310_pmx_emi_cs_2_3, | ||
35 | &spear310_pmx_uart1, | ||
36 | &spear310_pmx_uart2, | ||
37 | &spear310_pmx_uart3_4_5, | ||
38 | &spear310_pmx_fsmc, | ||
39 | &spear310_pmx_rs485_0_1, | ||
40 | &spear310_pmx_tdm0, | ||
41 | }; | ||
42 | |||
43 | static struct amba_device *amba_devs[] __initdata = { | ||
44 | /* spear3xx specific devices */ | ||
45 | &spear3xx_gpio_device, | ||
46 | &spear3xx_uart_device, | ||
47 | |||
48 | /* spear310 specific devices */ | ||
49 | }; | ||
50 | |||
51 | static struct platform_device *plat_devs[] __initdata = { | ||
52 | /* spear3xx specific devices */ | ||
53 | |||
54 | /* spear310 specific devices */ | ||
55 | }; | ||
56 | |||
57 | static void __init spear310_evb_init(void) | ||
58 | { | ||
59 | unsigned int i; | ||
60 | |||
61 | /* call spear310 machine init function */ | ||
62 | spear310_init(NULL, pmx_devs, ARRAY_SIZE(pmx_devs)); | ||
63 | |||
64 | /* Add Platform Devices */ | ||
65 | platform_add_devices(plat_devs, ARRAY_SIZE(plat_devs)); | ||
66 | |||
67 | /* Add Amba Devices */ | ||
68 | for (i = 0; i < ARRAY_SIZE(amba_devs); i++) | ||
69 | amba_device_register(amba_devs[i], &iomem_resource); | ||
70 | } | ||
71 | |||
72 | MACHINE_START(SPEAR310, "ST-SPEAR310-EVB") | ||
73 | .boot_params = 0x00000100, | ||
74 | .map_io = spear3xx_map_io, | ||
75 | .init_irq = spear3xx_init_irq, | ||
76 | .timer = &spear3xx_timer, | ||
77 | .init_machine = spear310_evb_init, | ||
78 | MACHINE_END | ||