2 * linux/arch/sh/boards/se/7300/setup.c
4 * Copyright (C) 2003 Takashi Kusuda <kusuda-takashi@hitachi-ul.co.jp>
6 * SH-Mobile SolutionEngine 7300 Support.
9 #include <linux/init.h>
10 #include <linux/platform_device.h>
11 #include <asm/machvec.h>
12 #include <asm/se7300.h>
14 void init_7300se_IRQ(void);
16 static unsigned char heartbeat_bit_pos[] = { 8, 9, 10, 11, 12, 13, 14, 15 };
18 static struct resource heartbeat_resources[] = {
21 .end = PA_LED + ARRAY_SIZE(heartbeat_bit_pos) - 1,
22 .flags = IORESOURCE_MEM,
26 static struct platform_device heartbeat_device = {
30 .platform_data = heartbeat_bit_pos,
32 .num_resources = ARRAY_SIZE(heartbeat_resources),
33 .resource = heartbeat_resources,
36 static struct platform_device *se7300_devices[] __initdata = {
40 static int __init se7300_devices_setup(void)
42 return platform_add_devices(se7300_devices, ARRAY_SIZE(se7300_devices));
44 __initcall(se7300_devices_setup);
49 struct sh_machine_vector mv_7300se __initmv = {
50 .mv_name = "SolutionEngine 7300",
52 .mv_inb = sh7300se_inb,
53 .mv_inw = sh7300se_inw,
54 .mv_inl = sh7300se_inl,
55 .mv_outb = sh7300se_outb,
56 .mv_outw = sh7300se_outw,
57 .mv_outl = sh7300se_outl,
59 .mv_inb_p = sh7300se_inb_p,
60 .mv_inw_p = sh7300se_inw,
61 .mv_inl_p = sh7300se_inl,
62 .mv_outb_p = sh7300se_outb_p,
63 .mv_outw_p = sh7300se_outw,
64 .mv_outl_p = sh7300se_outl,
66 .mv_insb = sh7300se_insb,
67 .mv_insw = sh7300se_insw,
68 .mv_insl = sh7300se_insl,
69 .mv_outsb = sh7300se_outsb,
70 .mv_outsw = sh7300se_outsw,
71 .mv_outsl = sh7300se_outsl,
73 .mv_init_irq = init_7300se_IRQ,