sh: Fix se73180 platform device registration.
[linux-2.6/btrfs-unstable.git] / arch / sh / boards / se / 73180 / setup.c
blobe143017c8975a0662ca64c2116106e8f97389533
1 /*
2 * arch/sh/boards/se/73180/setup.c
4 * Copyright (C) 2003 Takashi Kusuda <kusuda-takashi@hitachi-ul.co.jp>
5 * Based on arch/sh/setup_shmse.c
7 * Modified for 73180 SolutionEngine
8 * by YOSHII Takashi <yoshii-takashi@hitachi-ul.co.jp>
12 #include <linux/init.h>
13 #include <linux/platform_device.h>
14 #include <asm/machvec.h>
15 #include <asm/se73180.h>
16 #include <asm/irq.h>
18 void init_73180se_IRQ(void);
20 static struct resource heartbeat_resources[] = {
21 [0] = {
22 .start = PA_LED,
23 .end = PA_LED + 8 - 1,
24 .flags = IORESOURCE_MEM,
28 static struct platform_device heartbeat_device = {
29 .name = "heartbeat",
30 .id = -1,
31 .num_resources = ARRAY_SIZE(heartbeat_resources),
32 .resource = heartbeat_resources,
35 static struct platform_device *se73180_devices[] __initdata = {
36 &heartbeat_device,
39 static int __init se73180_devices_setup(void)
41 return platform_add_devices(se73180_devices,
42 ARRAY_SIZE(se73180_devices));
44 __initcall(se73180_devices_setup);
47 * The Machine Vector
49 struct sh_machine_vector mv_73180se __initmv = {
50 .mv_name = "SolutionEngine 73180",
51 .mv_nr_irqs = 108,
52 .mv_inb = sh73180se_inb,
53 .mv_inw = sh73180se_inw,
54 .mv_inl = sh73180se_inl,
55 .mv_outb = sh73180se_outb,
56 .mv_outw = sh73180se_outw,
57 .mv_outl = sh73180se_outl,
59 .mv_inb_p = sh73180se_inb_p,
60 .mv_inw_p = sh73180se_inw,
61 .mv_inl_p = sh73180se_inl,
62 .mv_outb_p = sh73180se_outb_p,
63 .mv_outw_p = sh73180se_outw,
64 .mv_outl_p = sh73180se_outl,
66 .mv_insb = sh73180se_insb,
67 .mv_insw = sh73180se_insw,
68 .mv_insl = sh73180se_insl,
69 .mv_outsb = sh73180se_outsb,
70 .mv_outsw = sh73180se_outsw,
71 .mv_outsl = sh73180se_outsl,
73 .mv_init_irq = init_73180se_IRQ,
74 .mv_irq_demux = shmse_irq_demux,
76 ALIAS_MV(73180se)