blob: 44fd3b5c33ec2de7f4321cf3fb513f20daa03b58 [file] [log] [blame]
Rabin Vincent591d8dd2010-05-03 08:46:51 +01001/*
2 * Copyright (C) ST-Ericsson SA 2010
3 *
4 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson
5 * License terms: GNU General Public License (GPL) version 2
6 */
7
8#include <linux/init.h>
9#include <linux/platform_device.h>
10#include <linux/amba/bus.h>
11#include <linux/gpio.h>
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053012#include <linux/irq.h>
Rabin Vincent591d8dd2010-05-03 08:46:51 +010013
14#include <asm/mach/arch.h>
15#include <asm/mach-types.h>
16
17#include <mach/hardware.h>
18#include <mach/devices.h>
19#include <mach/setup.h>
20
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053021#include "devices-db5500.h"
22
23static void __init u5500_uart_init(void)
24{
Linus Walleij5d7b8462010-10-14 13:57:59 +020025 db5500_add_uart0(NULL);
26 db5500_add_uart1(NULL);
27 db5500_add_uart2(NULL);
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053028}
Rabin Vincent591d8dd2010-05-03 08:46:51 +010029
30static void __init u5500_init_machine(void)
31{
32 u5500_init_devices();
33
Per Forlinbab263e2010-12-05 12:49:03 +010034 u5500_sdi_init();
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053035 u5500_uart_init();
Rabin Vincent591d8dd2010-05-03 08:46:51 +010036}
37
Per Forlinbab263e2010-12-05 12:49:03 +010038MACHINE_START(U5500, "ST-Ericsson U5500 Platform")
Rabin Vincent591d8dd2010-05-03 08:46:51 +010039 .boot_params = 0x00000100,
40 .map_io = u5500_map_io,
41 .init_irq = ux500_init_irq,
42 .timer = &ux500_timer,
43 .init_machine = u5500_init_machine,
44MACHINE_END