forked from Minki/linux
fe1dbfd3f9
There is now no need for the magicpanelr2 and dreamcast platforms to set their own I/O port bas values, given that the generic machvec code now sets this to P2SEG for everyone. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
58 lines
1.4 KiB
C
58 lines
1.4 KiB
C
/*
|
|
* arch/sh/boards/dreamcast/setup.c
|
|
*
|
|
* Hardware support for the Sega Dreamcast.
|
|
*
|
|
* Copyright (c) 2001, 2002 M. R. Brown <mrbrown@linuxdc.org>
|
|
* Copyright (c) 2002, 2003, 2004 Paul Mundt <lethal@linux-sh.org>
|
|
*
|
|
* This file is part of the LinuxDC project (www.linuxdc.org)
|
|
*
|
|
* Released under the terms of the GNU GPL v2.0.
|
|
*
|
|
* This file originally bore the message (with enclosed-$):
|
|
* Id: setup_dc.c,v 1.5 2001/05/24 05:09:16 mrbrown Exp
|
|
* SEGA Dreamcast support
|
|
*/
|
|
|
|
#include <linux/sched.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/param.h>
|
|
#include <linux/interrupt.h>
|
|
#include <linux/init.h>
|
|
#include <linux/irq.h>
|
|
#include <linux/device.h>
|
|
#include <asm/io.h>
|
|
#include <asm/irq.h>
|
|
#include <asm/rtc.h>
|
|
#include <asm/machvec.h>
|
|
#include <mach/sysasic.h>
|
|
|
|
extern struct irq_chip systemasic_int;
|
|
extern void aica_time_init(void);
|
|
extern int systemasic_irq_demux(int);
|
|
|
|
static void __init dreamcast_setup(char **cmdline_p)
|
|
{
|
|
int i;
|
|
|
|
/* Mask all hardware events */
|
|
/* XXX */
|
|
|
|
/* Acknowledge any previous events */
|
|
/* XXX */
|
|
|
|
/* Assign all virtual IRQs to the System ASIC int. handler */
|
|
for (i = HW_EVENT_IRQ_BASE; i < HW_EVENT_IRQ_MAX; i++)
|
|
set_irq_chip_and_handler(i, &systemasic_int,
|
|
handle_level_irq);
|
|
|
|
board_time_init = aica_time_init;
|
|
}
|
|
|
|
static struct sh_machine_vector mv_dreamcast __initmv = {
|
|
.mv_name = "Sega Dreamcast",
|
|
.mv_setup = dreamcast_setup,
|
|
.mv_irq_demux = systemasic_irq_demux,
|
|
};
|