RT-AC66 3.0.0.4.374.130 core
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / arch / sh / boards / se / 7751 / setup.c
blob52c7bfa57c2c64c18ba7d41b378a352d10a01f1f
1 /*
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>
15 #include <asm/io.h>
17 static unsigned char heartbeat_bit_pos[] = { 8, 9, 10, 11, 12, 13, 14, 15 };
19 static struct resource heartbeat_resources[] = {
20 [0] = {
21 .start = PA_LED,
22 .end = PA_LED + ARRAY_SIZE(heartbeat_bit_pos) - 1,
23 .flags = IORESOURCE_MEM,
27 static struct platform_device heartbeat_device = {
28 .name = "heartbeat",
29 .id = -1,
30 .dev = {
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 = {
38 &smc91x_device,
39 &heartbeat_device,
42 static int __init se7751_devices_setup(void)
44 return platform_add_devices(se7751_devices, ARRAY_SIZE(se7751_devices));
46 __initcall(se7751_devices_setup);
49 * The Machine Vector
51 struct sh_machine_vector mv_7751se __initmv = {
52 .mv_name = "7751 SolutionEngine",
53 .mv_nr_irqs = 72,
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,
74 ALIAS_MV(7751se)