1aaf9128aSKuninori Morimoto // SPDX-License-Identifier: GPL-2.0 2da2014a2SPaul Mundt /* 3da2014a2SPaul Mundt * arch/sh/boards/dreamcast/setup.c 4da2014a2SPaul Mundt * 5da2014a2SPaul Mundt * Hardware support for the Sega Dreamcast. 6da2014a2SPaul Mundt * 7da2014a2SPaul Mundt * Copyright (c) 2001, 2002 M. R. Brown <mrbrown@linuxdc.org> 8da2014a2SPaul Mundt * Copyright (c) 2002, 2003, 2004 Paul Mundt <lethal@linux-sh.org> 9da2014a2SPaul Mundt * 10da2014a2SPaul Mundt * This file is part of the LinuxDC project (www.linuxdc.org) 11da2014a2SPaul Mundt * 12da2014a2SPaul Mundt * This file originally bore the message (with enclosed-$): 13da2014a2SPaul Mundt * Id: setup_dc.c,v 1.5 2001/05/24 05:09:16 mrbrown Exp 14da2014a2SPaul Mundt * SEGA Dreamcast support 15da2014a2SPaul Mundt */ 16da2014a2SPaul Mundt 17da2014a2SPaul Mundt #include <linux/sched.h> 18da2014a2SPaul Mundt #include <linux/kernel.h> 19da2014a2SPaul Mundt #include <linux/param.h> 20da2014a2SPaul Mundt #include <linux/interrupt.h> 21da2014a2SPaul Mundt #include <linux/init.h> 22da2014a2SPaul Mundt #include <linux/irq.h> 23da2014a2SPaul Mundt #include <linux/device.h> 24da2014a2SPaul Mundt #include <asm/io.h> 25da2014a2SPaul Mundt #include <asm/irq.h> 26da2014a2SPaul Mundt #include <asm/rtc.h> 27da2014a2SPaul Mundt #include <asm/machvec.h> 28*10c88ca5SArtur Rojek #include <cpu/addrspace.h> 29da2014a2SPaul Mundt #include <mach/sysasic.h> 30da2014a2SPaul Mundt dreamcast_setup(char ** cmdline_p)31da2014a2SPaul Mundtstatic void __init dreamcast_setup(char **cmdline_p) 32da2014a2SPaul Mundt { 33*10c88ca5SArtur Rojek /* GAPS PCI bridge assumes P2 area relative addresses. */ 34*10c88ca5SArtur Rojek __set_io_port_base(P2SEG); 35da2014a2SPaul Mundt } 36da2014a2SPaul Mundt 37da2014a2SPaul Mundt static struct sh_machine_vector mv_dreamcast __initmv = { 38da2014a2SPaul Mundt .mv_name = "Sega Dreamcast", 39da2014a2SPaul Mundt .mv_setup = dreamcast_setup, 40da2014a2SPaul Mundt .mv_irq_demux = systemasic_irq_demux, 41deb9b22bSPaul Mundt .mv_init_irq = systemasic_irq_init, 42da2014a2SPaul Mundt }; 43