blob: ad1a4db72e0406308484ce7bebe6ad514433696b [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * arch/sh/boards/dreamcast/setup.c
3 *
4 * Hardware support for the Sega Dreamcast.
5 *
6 * Copyright (c) 2001, 2002 M. R. Brown <mrbrown@linuxdc.org>
7 * Copyright (c) 2002, 2003, 2004 Paul Mundt <lethal@linux-sh.org>
8 *
9 * This file is part of the LinuxDC project (www.linuxdc.org)
10 *
11 * Released under the terms of the GNU GPL v2.0.
12 *
13 * This file originally bore the message (with enclosed-$):
14 * Id: setup_dc.c,v 1.5 2001/05/24 05:09:16 mrbrown Exp
15 * SEGA Dreamcast support
16 */
17
18#include <linux/sched.h>
19#include <linux/kernel.h>
20#include <linux/param.h>
21#include <linux/interrupt.h>
22#include <linux/init.h>
23#include <linux/irq.h>
24#include <linux/device.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070025#include <asm/io.h>
26#include <asm/irq.h>
Paul Mundte4c2cfe2006-09-27 12:31:01 +090027#include <asm/rtc.h>
Paul Mundtcc64f7f2008-07-29 08:24:50 +090028#include <asm/machvec.h>
Paul Mundtf15cbe62008-07-29 08:09:44 +090029#include <mach/sysasic.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070030
Paul Mundt2c7834a2006-09-27 18:17:31 +090031static void __init dreamcast_setup(char **cmdline_p)
Linus Torvalds1da177e2005-04-16 15:20:36 -070032{
Linus Torvalds1da177e2005-04-16 15:20:36 -070033 board_time_init = aica_time_init;
Linus Torvalds1da177e2005-04-16 15:20:36 -070034}
Paul Mundt2c7834a2006-09-27 18:17:31 +090035
Paul Mundt82f81f42007-05-15 15:19:34 +090036static struct sh_machine_vector mv_dreamcast __initmv = {
Paul Mundt2c7834a2006-09-27 18:17:31 +090037 .mv_name = "Sega Dreamcast",
38 .mv_setup = dreamcast_setup,
39 .mv_irq_demux = systemasic_irq_demux,
Paul Mundtdeb9b222010-02-02 18:01:55 +090040 .mv_init_irq = systemasic_irq_init,
Paul Mundt2c7834a2006-09-27 18:17:31 +090041};