3 * linux/arch/sh/boards/se/7206/setup.c
5 * Copyright (C) 2006 Yoshinori Sato
7 * Hitachi 7206 SolutionEngine Support.
11 #include <linux/init.h>
12 #include <linux/platform_device.h>
13 #include <asm/se7206.h>
15 #include <asm/machvec.h>
17 static struct resource smc91x_resources[] = {
20 .end = 0x300 + 0x020 - 1,
21 .flags = IORESOURCE_MEM,
26 .flags = IORESOURCE_IRQ,
30 static struct platform_device smc91x_device = {
33 .num_resources = ARRAY_SIZE(smc91x_resources),
34 .resource = smc91x_resources,
37 static int __init se7206_devices_setup(void)
39 return platform_device_register(&smc91x_device);
42 __initcall(se7206_devices_setup);
44 void heartbeat_se(void);
50 struct sh_machine_vector mv_se __initmv = {
51 .mv_name = "SolutionEngine",
56 .mv_outb = se7206_outb,
57 .mv_outw = se7206_outw,
58 .mv_outl = se7206_outl,
60 .mv_inb_p = se7206_inb_p,
61 .mv_inw_p = se7206_inw,
62 .mv_inl_p = se7206_inl,
63 .mv_outb_p = se7206_outb_p,
64 .mv_outw_p = se7206_outw,
65 .mv_outl_p = se7206_outl,
67 .mv_insb = se7206_insb,
68 .mv_insw = se7206_insw,
69 .mv_insl = se7206_insl,
70 .mv_outsb = se7206_outsb,
71 .mv_outsw = se7206_outsw,
72 .mv_outsl = se7206_outsl,
74 .mv_init_irq = init_se7206_IRQ,
75 #ifdef CONFIG_HEARTBEAT
76 .mv_heartbeat = heartbeat_se,