3 * linux/arch/sh/boards/se/7206/setup.c
5 * Copyright (C) 2006 Yoshinori Sato
6 * Copyright (C) 2007 - 2008 Paul Mundt
8 * Hitachi 7206 SolutionEngine Support.
10 #include <linux/init.h>
11 #include <linux/platform_device.h>
12 #include <linux/smc91x.h>
13 #include <mach-se/mach/se7206.h>
15 #include <asm/machvec.h>
16 #include <asm/heartbeat.h>
18 static struct resource smc91x_resources[] = {
20 .name = "smc91x-regs",
21 .start = PA_SMSC + 0x300,
22 .end = PA_SMSC + 0x300 + 0x020 - 1,
23 .flags = IORESOURCE_MEM,
28 .flags = IORESOURCE_IRQ,
32 static struct smc91x_platdata smc91x_info = {
33 .flags = SMC91X_USE_16BIT,
36 static struct platform_device smc91x_device = {
41 .coherent_dma_mask = 0xffffffff,
42 .platform_data = &smc91x_info,
44 .num_resources = ARRAY_SIZE(smc91x_resources),
45 .resource = smc91x_resources,
48 static unsigned char heartbeat_bit_pos[] = { 8, 9, 10, 11, 12, 13, 14, 15 };
50 static struct heartbeat_data heartbeat_data = {
51 .bit_pos = heartbeat_bit_pos,
52 .nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
56 static struct resource heartbeat_resources[] = {
60 .flags = IORESOURCE_MEM,
64 static struct platform_device heartbeat_device = {
68 .platform_data = &heartbeat_data,
70 .num_resources = ARRAY_SIZE(heartbeat_resources),
71 .resource = heartbeat_resources,
74 static struct platform_device *se7206_devices[] __initdata = {
79 static int __init se7206_devices_setup(void)
81 return platform_add_devices(se7206_devices, ARRAY_SIZE(se7206_devices));
83 __initcall(se7206_devices_setup);
89 static struct sh_machine_vector mv_se __initmv = {
90 .mv_name = "SolutionEngine",
94 .mv_outb = se7206_outb,
95 .mv_outw = se7206_outw,
97 .mv_inb_p = se7206_inb_p,
98 .mv_inw_p = se7206_inw,
99 .mv_outb_p = se7206_outb_p,
100 .mv_outw_p = se7206_outw,
102 .mv_insb = se7206_insb,
103 .mv_insw = se7206_insw,
104 .mv_outsb = se7206_outsb,
105 .mv_outsw = se7206_outsw,
107 .mv_init_irq = init_se7206_IRQ,