85bc4d226212493036970cff14e22001b05e5e07
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-spear3xx / spear320_evb.c
1 /*
2  * arch/arm/mach-spear3xx/spear320_evb.c
3  *
4  * SPEAr320 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
19 static struct amba_device *amba_devs[] __initdata = {
20         /* spear3xx specific devices */
21         &gpio_device,
22         &uart_device,
23
24         /* spear320 specific devices */
25 };
26
27 static struct platform_device *plat_devs[] __initdata = {
28         /* spear3xx specific devices */
29
30         /* spear320 specific devices */
31 };
32
33 static void __init spear320_evb_init(void)
34 {
35         unsigned int i;
36
37         /* call spear320 machine init function */
38         spear320_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
48 MACHINE_START(SPEAR320, "ST-SPEAR320-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   =       spear320_evb_init,
54 MACHINE_END