blob: f30c69d91d994d8c432d5993fa6bafa45d7e91f4 [file] [log] [blame]
Linus Walleijbb3cee22009-04-23 10:22:13 +01001/*
2 *
3 * arch/arm/mach-u300/u300.c
4 *
5 *
6 * Copyright (C) 2006-2009 ST-Ericsson AB
7 * License terms: GNU General Public License (GPL) version 2
8 * Platform machine definition.
9 * Author: Linus Walleij <linus.walleij@stericsson.com>
10 */
11#include <linux/kernel.h>
12#include <linux/init.h>
13#include <linux/mm.h>
14#include <linux/sched.h>
15#include <linux/interrupt.h>
16#include <linux/ioport.h>
Russell King8d717a52010-05-22 19:47:18 +010017#include <linux/memblock.h>
Linus Walleijbb3cee22009-04-23 10:22:13 +010018#include <linux/platform_device.h>
19#include <linux/io.h>
20#include <mach/hardware.h>
21#include <mach/platform.h>
Jamie Ilesb7378ea2011-09-27 20:41:01 +010022#include <asm/hardware/vic.h>
Linus Walleijbb3cee22009-04-23 10:22:13 +010023#include <asm/mach-types.h>
24#include <asm/mach/arch.h>
Russell Kingf4117ac2011-01-04 18:07:14 +000025#include <asm/memory.h>
Linus Walleijbb3cee22009-04-23 10:22:13 +010026
27static void __init u300_init_machine(void)
28{
29 u300_init_devices();
30}
31
32#ifdef CONFIG_MACH_U300_BS2X
33#define MACH_U300_STRING "Ericsson AB U300 S25/S26/B25/B26 Prototype Board"
34#endif
35
36#ifdef CONFIG_MACH_U300_BS330
37#define MACH_U300_STRING "Ericsson AB U330 S330/B330 Prototype Board"
38#endif
39
40#ifdef CONFIG_MACH_U300_BS335
41#define MACH_U300_STRING "Ericsson AB U335 S335/B335 Prototype Board"
42#endif
43
44#ifdef CONFIG_MACH_U300_BS365
45#define MACH_U300_STRING "Ericsson AB U365 S365/B365 Prototype Board"
46#endif
47
48MACHINE_START(U300, MACH_U300_STRING)
49 /* Maintainer: Linus Walleij <linus.walleij@stericsson.com> */
Linus Walleijbfd912c2011-11-29 14:51:15 +010050 .atag_offset = 0x100,
Linus Walleijbb3cee22009-04-23 10:22:13 +010051 .map_io = u300_map_io,
Linus Walleijbb3cee22009-04-23 10:22:13 +010052 .init_irq = u300_init_irq,
Jamie Ilesb7378ea2011-09-27 20:41:01 +010053 .handle_irq = vic_handle_irq,
Linus Walleijbb3cee22009-04-23 10:22:13 +010054 .timer = &u300_timer,
55 .init_machine = u300_init_machine,
Russell King7e3974b2011-11-05 15:51:25 +000056 .restart = u300_restart,
Linus Walleijbb3cee22009-04-23 10:22:13 +010057MACHINE_END