2009-04-23 09:22:13 +00:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* arch/arm/mach-u300/u300.c
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006-2009 ST-Ericsson AB
|
|
|
|
* License terms: GNU General Public License (GPL) version 2
|
|
|
|
* Platform machine definition.
|
|
|
|
* Author: Linus Walleij <linus.walleij@stericsson.com>
|
|
|
|
*/
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
#include <linux/mm.h>
|
|
|
|
#include <linux/sched.h>
|
|
|
|
#include <linux/interrupt.h>
|
|
|
|
#include <linux/ioport.h>
|
2010-05-22 18:47:18 +00:00
|
|
|
#include <linux/memblock.h>
|
2009-04-23 09:22:13 +00:00
|
|
|
#include <linux/platform_device.h>
|
|
|
|
#include <linux/io.h>
|
|
|
|
#include <mach/hardware.h>
|
|
|
|
#include <mach/platform.h>
|
2011-09-27 19:41:01 +00:00
|
|
|
#include <asm/hardware/vic.h>
|
2009-04-23 09:22:13 +00:00
|
|
|
#include <asm/mach-types.h>
|
|
|
|
#include <asm/mach/arch.h>
|
2011-01-04 18:07:14 +00:00
|
|
|
#include <asm/memory.h>
|
2009-04-23 09:22:13 +00:00
|
|
|
|
|
|
|
static void __init u300_init_machine(void)
|
|
|
|
{
|
|
|
|
u300_init_devices();
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef CONFIG_MACH_U300_BS2X
|
|
|
|
#define MACH_U300_STRING "Ericsson AB U300 S25/S26/B25/B26 Prototype Board"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_MACH_U300_BS330
|
|
|
|
#define MACH_U300_STRING "Ericsson AB U330 S330/B330 Prototype Board"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_MACH_U300_BS335
|
|
|
|
#define MACH_U300_STRING "Ericsson AB U335 S335/B335 Prototype Board"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_MACH_U300_BS365
|
|
|
|
#define MACH_U300_STRING "Ericsson AB U365 S365/B365 Prototype Board"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
MACHINE_START(U300, MACH_U300_STRING)
|
|
|
|
/* Maintainer: Linus Walleij <linus.walleij@stericsson.com> */
|
2011-11-29 13:51:15 +00:00
|
|
|
.atag_offset = 0x100,
|
2009-04-23 09:22:13 +00:00
|
|
|
.map_io = u300_map_io,
|
|
|
|
.init_irq = u300_init_irq,
|
2011-09-27 19:41:01 +00:00
|
|
|
.handle_irq = vic_handle_irq,
|
2009-04-23 09:22:13 +00:00
|
|
|
.timer = &u300_timer,
|
|
|
|
.init_machine = u300_init_machine,
|
2011-11-05 15:51:25 +00:00
|
|
|
.restart = u300_restart,
|
2009-04-23 09:22:13 +00:00
|
|
|
MACHINE_END
|