board-u5500.c 908 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/*
 * 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>
R
Rabin Vincent 已提交
12
#include <linux/irq.h>
13 14 15 16 17 18 19 20

#include <asm/mach/arch.h>
#include <asm/mach-types.h>

#include <mach/hardware.h>
#include <mach/devices.h>
#include <mach/setup.h>

R
Rabin Vincent 已提交
21 22 23 24 25 26 27 28
#include "devices-db5500.h"

static void __init u5500_uart_init(void)
{
	db5500_add_uart0();
	db5500_add_uart1();
	db5500_add_uart2();
}
29 30 31 32 33

static void __init u5500_init_machine(void)
{
	u5500_init_devices();

P
Per Forlin 已提交
34
	u5500_sdi_init();
R
Rabin Vincent 已提交
35
	u5500_uart_init();
36 37
}

P
Per Forlin 已提交
38
MACHINE_START(U5500, "ST-Ericsson U5500 Platform")
39 40 41 42 43 44
	.boot_params	= 0x00000100,
	.map_io		= u5500_map_io,
	.init_irq	= ux500_init_irq,
	.timer		= &ux500_timer,
	.init_machine	= u5500_init_machine,
MACHINE_END