2010-04-01 04:30:58 -07:00
|
|
|
/*
|
|
|
|
* arch/arm/mach-spear3xx/spear310_evb.c
|
|
|
|
*
|
|
|
|
* SPEAr310 evaluation board source file
|
|
|
|
*
|
|
|
|
* Copyright (C) 2009 ST Microelectronics
|
|
|
|
* Viresh Kumar<viresh.kumar@st.com>
|
|
|
|
*
|
|
|
|
* This file is licensed under the terms of the GNU General Public
|
|
|
|
* License version 2. This program is licensed "as is" without any
|
|
|
|
* warranty of any kind, whether express or implied.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <asm/mach/arch.h>
|
|
|
|
#include <asm/mach-types.h>
|
|
|
|
#include <mach/generic.h>
|
2011-03-06 21:57:02 -07:00
|
|
|
#include <mach/hardware.h>
|
2010-04-01 04:30:58 -07:00
|
|
|
|
2010-04-01 04:31:29 -07:00
|
|
|
/* padmux devices to enable */
|
|
|
|
static struct pmx_dev *pmx_devs[] = {
|
|
|
|
/* spear3xx specific devices */
|
2011-05-20 00:34:22 -07:00
|
|
|
&spear3xx_pmx_i2c,
|
|
|
|
&spear3xx_pmx_ssp,
|
|
|
|
&spear3xx_pmx_gpio_pin0,
|
|
|
|
&spear3xx_pmx_gpio_pin1,
|
|
|
|
&spear3xx_pmx_gpio_pin2,
|
|
|
|
&spear3xx_pmx_gpio_pin3,
|
|
|
|
&spear3xx_pmx_gpio_pin4,
|
|
|
|
&spear3xx_pmx_gpio_pin5,
|
|
|
|
&spear3xx_pmx_uart0,
|
2010-04-01 04:31:29 -07:00
|
|
|
|
|
|
|
/* spear310 specific devices */
|
2011-05-20 00:34:22 -07:00
|
|
|
&spear310_pmx_emi_cs_0_1_4_5,
|
|
|
|
&spear310_pmx_emi_cs_2_3,
|
|
|
|
&spear310_pmx_uart1,
|
|
|
|
&spear310_pmx_uart2,
|
|
|
|
&spear310_pmx_uart3_4_5,
|
|
|
|
&spear310_pmx_fsmc,
|
|
|
|
&spear310_pmx_rs485_0_1,
|
|
|
|
&spear310_pmx_tdm0,
|
2010-04-01 04:31:29 -07:00
|
|
|
};
|
|
|
|
|
2010-04-01 04:30:58 -07:00
|
|
|
static struct amba_device *amba_devs[] __initdata = {
|
|
|
|
/* spear3xx specific devices */
|
2011-05-20 00:34:23 -07:00
|
|
|
&spear3xx_gpio_device,
|
|
|
|
&spear3xx_uart_device,
|
2010-04-01 04:30:58 -07:00
|
|
|
|
|
|
|
/* spear310 specific devices */
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct platform_device *plat_devs[] __initdata = {
|
|
|
|
/* spear3xx specific devices */
|
|
|
|
|
|
|
|
/* spear310 specific devices */
|
|
|
|
};
|
|
|
|
|
|
|
|
static void __init spear310_evb_init(void)
|
|
|
|
{
|
|
|
|
unsigned int i;
|
|
|
|
|
2011-02-15 23:40:30 -07:00
|
|
|
/* call spear310 machine init function */
|
2011-05-20 00:34:22 -07:00
|
|
|
spear310_init(NULL, pmx_devs, ARRAY_SIZE(pmx_devs));
|
2010-04-01 04:31:29 -07:00
|
|
|
|
2010-04-01 04:30:58 -07:00
|
|
|
/* Add Platform Devices */
|
|
|
|
platform_add_devices(plat_devs, ARRAY_SIZE(plat_devs));
|
|
|
|
|
|
|
|
/* Add Amba Devices */
|
|
|
|
for (i = 0; i < ARRAY_SIZE(amba_devs); i++)
|
|
|
|
amba_device_register(amba_devs[i], &iomem_resource);
|
|
|
|
}
|
|
|
|
|
|
|
|
MACHINE_START(SPEAR310, "ST-SPEAR310-EVB")
|
|
|
|
.boot_params = 0x00000100,
|
|
|
|
.map_io = spear3xx_map_io,
|
|
|
|
.init_irq = spear3xx_init_irq,
|
2011-02-15 23:40:32 -07:00
|
|
|
.timer = &spear3xx_timer,
|
2010-04-01 04:30:58 -07:00
|
|
|
.init_machine = spear310_evb_init,
|
|
|
|
MACHINE_END
|