2010-05-03 15:46:51 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) ST-Ericsson SA 2010
|
|
|
|
*
|
|
|
|
* Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson
|
|
|
|
* License terms: GNU General Public License (GPL) version 2
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/init.h>
|
|
|
|
#include <linux/platform_device.h>
|
|
|
|
#include <linux/amba/bus.h>
|
|
|
|
#include <linux/gpio.h>
|
2010-09-29 22:16:32 +08:00
|
|
|
#include <linux/irq.h>
|
2010-05-03 15:46:51 +08:00
|
|
|
|
|
|
|
#include <asm/mach/arch.h>
|
|
|
|
#include <asm/mach-types.h>
|
|
|
|
|
|
|
|
#include <mach/hardware.h>
|
|
|
|
#include <mach/devices.h>
|
|
|
|
#include <mach/setup.h>
|
|
|
|
|
2010-09-29 22:16:32 +08:00
|
|
|
#include "devices-db5500.h"
|
|
|
|
|
|
|
|
static void __init u5500_uart_init(void)
|
|
|
|
{
|
2010-10-14 19:57:59 +08:00
|
|
|
db5500_add_uart0(NULL);
|
|
|
|
db5500_add_uart1(NULL);
|
|
|
|
db5500_add_uart2(NULL);
|
2010-09-29 22:16:32 +08:00
|
|
|
}
|
2010-05-03 15:46:51 +08:00
|
|
|
|
|
|
|
static void __init u5500_init_machine(void)
|
|
|
|
{
|
|
|
|
u5500_init_devices();
|
|
|
|
|
2010-12-05 19:49:03 +08:00
|
|
|
u5500_sdi_init();
|
2010-09-29 22:16:32 +08:00
|
|
|
u5500_uart_init();
|
2010-05-03 15:46:51 +08:00
|
|
|
}
|
|
|
|
|
2010-12-05 19:49:03 +08:00
|
|
|
MACHINE_START(U5500, "ST-Ericsson U5500 Platform")
|
2010-05-03 15:46:51 +08:00
|
|
|
.boot_params = 0x00000100,
|
|
|
|
.map_io = u5500_map_io,
|
|
|
|
.init_irq = ux500_init_irq,
|
|
|
|
.timer = &ux500_timer,
|
|
|
|
.init_machine = u5500_init_machine,
|
|
|
|
MACHINE_END
|