3 * linux/arch/sh/boards/se/7206/setup.c
5 * Copyright (C) 2006 Yoshinori Sato
6 * Copyright (C) 2007 Paul Mundt
8 * Hitachi 7206 SolutionEngine Support.
10 #include <linux/init.h>
11 #include <linux/platform_device.h>
12 #include <asm/se7206.h>
14 #include <asm/machvec.h>
15 #include <asm/heartbeat.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 unsigned char heartbeat_bit_pos
[] = { 8, 9, 10, 11, 12, 13, 14, 15 };
39 static struct heartbeat_data heartbeat_data
= {
40 .bit_pos
= heartbeat_bit_pos
,
41 .nr_bits
= ARRAY_SIZE(heartbeat_bit_pos
),
45 static struct resource heartbeat_resources
[] = {
49 .flags
= IORESOURCE_MEM
,
53 static struct platform_device heartbeat_device
= {
57 .platform_data
= &heartbeat_data
,
59 .num_resources
= ARRAY_SIZE(heartbeat_resources
),
60 .resource
= heartbeat_resources
,
63 static struct platform_device
*se7206_devices
[] __initdata
= {
68 static int __init
se7206_devices_setup(void)
70 return platform_add_devices(se7206_devices
, ARRAY_SIZE(se7206_devices
));
72 __initcall(se7206_devices_setup
);
78 static struct sh_machine_vector mv_se __initmv
= {
79 .mv_name
= "SolutionEngine",
83 .mv_outb
= se7206_outb
,
84 .mv_outw
= se7206_outw
,
86 .mv_inb_p
= se7206_inb_p
,
87 .mv_inw_p
= se7206_inw
,
88 .mv_outb_p
= se7206_outb_p
,
89 .mv_outw_p
= se7206_outw
,
91 .mv_insb
= se7206_insb
,
92 .mv_insw
= se7206_insw
,
93 .mv_outsb
= se7206_outsb
,
94 .mv_outsw
= se7206_outsw
,
96 .mv_init_irq
= init_se7206_IRQ
,