aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/dreamcast/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/boards/dreamcast/setup.c')
-rw-r--r--arch/sh/boards/dreamcast/setup.c34
1 files changed, 13 insertions, 21 deletions
diff --git a/arch/sh/boards/dreamcast/setup.c b/arch/sh/boards/dreamcast/setup.c
index a00ac94beb05..f13017eeeb27 100644
--- a/arch/sh/boards/dreamcast/setup.c
+++ b/arch/sh/boards/dreamcast/setup.c
@@ -22,7 +22,6 @@
22#include <linux/init.h> 22#include <linux/init.h>
23#include <linux/irq.h> 23#include <linux/irq.h>
24#include <linux/device.h> 24#include <linux/device.h>
25
26#include <asm/io.h> 25#include <asm/io.h>
27#include <asm/irq.h> 26#include <asm/irq.h>
28#include <asm/rtc.h> 27#include <asm/rtc.h>
@@ -37,24 +36,7 @@ extern int systemasic_irq_demux(int);
37void *dreamcast_consistent_alloc(struct device *, size_t, dma_addr_t *, gfp_t); 36void *dreamcast_consistent_alloc(struct device *, size_t, dma_addr_t *, gfp_t);
38int dreamcast_consistent_free(struct device *, size_t, void *, dma_addr_t); 37int dreamcast_consistent_free(struct device *, size_t, void *, dma_addr_t);
39 38
40const char *get_system_type(void) 39static void __init dreamcast_setup(char **cmdline_p)
41{
42 return "Sega Dreamcast";
43}
44
45struct sh_machine_vector mv_dreamcast __initmv = {
46 .mv_nr_irqs = NR_IRQS,
47
48 .mv_irq_demux = systemasic_irq_demux,
49
50#ifdef CONFIG_PCI
51 .mv_consistent_alloc = dreamcast_consistent_alloc,
52 .mv_consistent_free = dreamcast_consistent_free,
53#endif
54};
55ALIAS_MV(dreamcast)
56
57int __init platform_setup(void)
58{ 40{
59 int i; 41 int i;
60 42
@@ -76,6 +58,16 @@ int __init platform_setup(void)
76 if (gapspci_init() < 0) 58 if (gapspci_init() < 0)
77 printk(KERN_WARNING "GAPSPCI was not detected.\n"); 59 printk(KERN_WARNING "GAPSPCI was not detected.\n");
78#endif 60#endif
79
80 return 0;
81} 61}
62
63struct sh_machine_vector mv_dreamcast __initmv = {
64 .mv_name = "Sega Dreamcast",
65 .mv_setup = dreamcast_setup,
66 .mv_irq_demux = systemasic_irq_demux,
67
68#ifdef CONFIG_PCI
69 .mv_consistent_alloc = dreamcast_consistent_alloc,
70 .mv_consistent_free = dreamcast_consistent_free,
71#endif
72};
73ALIAS_MV(dreamcast)