| Rabin Vincent | 591d8dd | 2010-05-03 08:46:51 +0100 | [diff] [blame] | 1 | /* | 
 | 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 Vincent | fbf1ead | 2010-09-29 19:46:32 +0530 | [diff] [blame] | 12 | #include <linux/irq.h> | 
| Rabin Vincent | 591d8dd | 2010-05-03 08:46:51 +0100 | [diff] [blame] | 13 |  | 
 | 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 Vincent | fbf1ead | 2010-09-29 19:46:32 +0530 | [diff] [blame] | 21 | #include "devices-db5500.h" | 
 | 22 |  | 
 | 23 | static void __init u5500_uart_init(void) | 
 | 24 | { | 
 | 25 | 	db5500_add_uart0(); | 
 | 26 | 	db5500_add_uart1(); | 
 | 27 | 	db5500_add_uart2(); | 
 | 28 | } | 
| Rabin Vincent | 591d8dd | 2010-05-03 08:46:51 +0100 | [diff] [blame] | 29 |  | 
 | 30 | static void __init u5500_init_machine(void) | 
 | 31 | { | 
 | 32 | 	u5500_init_devices(); | 
 | 33 |  | 
| Per Forlin | bab263e | 2010-12-05 12:49:03 +0100 | [diff] [blame] | 34 | 	u5500_sdi_init(); | 
| Rabin Vincent | fbf1ead | 2010-09-29 19:46:32 +0530 | [diff] [blame] | 35 | 	u5500_uart_init(); | 
| Rabin Vincent | 591d8dd | 2010-05-03 08:46:51 +0100 | [diff] [blame] | 36 | } | 
 | 37 |  | 
| Per Forlin | bab263e | 2010-12-05 12:49:03 +0100 | [diff] [blame] | 38 | MACHINE_START(U5500, "ST-Ericsson U5500 Platform") | 
| Rabin Vincent | 591d8dd | 2010-05-03 08:46:51 +0100 | [diff] [blame] | 39 | 	.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, | 
 | 44 | MACHINE_END |