1/*
2 * linux/arch/sh/boards/se/7300/setup.c
3 *
4 * Copyright (C) 2003 Takashi Kusuda <kusuda-takashi@hitachi-ul.co.jp>
5 *
6 * SH-Mobile SolutionEngine 7300 Support.
7 *
8 */
9#include <linux/init.h>
10#include <linux/platform_device.h>
11#include <asm/machvec.h>
12#include <asm/se7300.h>
13
14void init_7300se_IRQ(void);
15
16static unsigned char heartbeat_bit_pos[] = { 8, 9, 10, 11, 12, 13, 14, 15 };
17
18static struct resource heartbeat_resources[] = {
19	[0] = {
20		.start	= PA_LED,
21		.end	= PA_LED + ARRAY_SIZE(heartbeat_bit_pos) - 1,
22		.flags	= IORESOURCE_MEM,
23	},
24};
25
26static struct platform_device heartbeat_device = {
27	.name		= "heartbeat",
28	.id		= -1,
29	.dev	= {
30		.platform_data	= heartbeat_bit_pos,
31	},
32	.num_resources	= ARRAY_SIZE(heartbeat_resources),
33	.resource	= heartbeat_resources,
34};
35
36static struct platform_device *se7300_devices[] __initdata = {
37	&heartbeat_device,
38};
39
40static int __init se7300_devices_setup(void)
41{
42	return platform_add_devices(se7300_devices, ARRAY_SIZE(se7300_devices));
43}
44__initcall(se7300_devices_setup);
45
46/*
47 * The Machine Vector
48 */
49struct sh_machine_vector mv_7300se __initmv = {
50	.mv_name = "SolutionEngine 7300",
51	.mv_nr_irqs = 109,
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,
58
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,
65
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,
72
73	.mv_init_irq = init_7300se_IRQ,
74};
75ALIAS_MV(7300se)
76