2 * linux/arch/sh/boards/se/7751/setup.c
4 * Copyright (C) 2000 Kazumoto Kojima
6 * Hitachi SolutionEngine Support.
8 * Modified for 7751 Solution Engine by
9 * Ian da Silva and Jeremy Siegel, 2001.
11 #include <linux/init.h>
12 #include <linux/platform_device.h>
13 #include <asm/machvec.h>
14 #include <asm/se7751.h>
17 static unsigned char heartbeat_bit_pos[] = { 8, 9, 10, 11, 12, 13, 14, 15 };
19 static struct resource heartbeat_resources[] = {
22 .end = PA_LED + ARRAY_SIZE(heartbeat_bit_pos) - 1,
23 .flags = IORESOURCE_MEM,
27 static struct platform_device heartbeat_device = {
31 .platform_data = heartbeat_bit_pos,
33 .num_resources = ARRAY_SIZE(heartbeat_resources),
34 .resource = heartbeat_resources,
37 static struct platform_device *se7751_devices[] __initdata = {
42 static int __init se7751_devices_setup(void)
44 return platform_add_devices(se7751_devices, ARRAY_SIZE(se7751_devices));
46 __initcall(se7751_devices_setup);
51 static struct sh_machine_vector mv_7751se __initmv = {
52 .mv_name = "7751 SolutionEngine",
55 .mv_inb = sh7751se_inb,
56 .mv_inw = sh7751se_inw,
57 .mv_inl = sh7751se_inl,
58 .mv_outb = sh7751se_outb,
59 .mv_outw = sh7751se_outw,
60 .mv_outl = sh7751se_outl,
62 .mv_inb_p = sh7751se_inb_p,
63 .mv_inw_p = sh7751se_inw,
64 .mv_inl_p = sh7751se_inl,
65 .mv_outb_p = sh7751se_outb_p,
66 .mv_outw_p = sh7751se_outw,
67 .mv_outl_p = sh7751se_outl,
69 .mv_insl = sh7751se_insl,
70 .mv_outsl = sh7751se_outsl,
72 .mv_init_irq = init_7751se_IRQ,