Merge branch 'master' into upstream
[pandora-kernel.git] / arch / sh / boards / se / 73180 / setup.c
1 /*
2  * arch/sh/boards/se/73180/setup.c
3  *
4  * Copyright (C) 2003 Takashi Kusuda <kusuda-takashi@hitachi-ul.co.jp>
5  * Based on arch/sh/setup_shmse.c
6  *
7  * Modified for 73180 SolutionEngine
8  *           by YOSHII Takashi <yoshii-takashi@hitachi-ul.co.jp>
9  *
10  */
11
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>
17
18 void init_73180se_IRQ(void);
19
20 static struct resource heartbeat_resources[] = {
21         [0] = {
22                 .start  = PA_LED,
23                 .end    = PA_LED + 8 - 1,
24                 .flags  = IORESOURCE_MEM,
25         },
26 };
27
28 static struct platform_device heartbeat_device = {
29         .name           = "heartbeat",
30         .id             = -1,
31         .num_resources  = ARRAY_SIZE(heartbeat_resources),
32         .resource       = heartbeat_resources,
33 };
34
35 static struct platform_device *se73180_devices[] __initdata = {
36         &heartbeat_device,
37 };
38
39 static int __init se73180_devices_setup(void)
40 {
41         return platform_add_devices(sh7343se_platform_devices,
42                                     ARRAY_SIZE(sh7343se_platform_devices));
43 }
44 __initcall(se73180_devices_setup);
45
46 /*
47  * The Machine Vector
48  */
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,
58
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,
65
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,
72
73         .mv_init_irq = init_73180se_IRQ,
74         .mv_irq_demux = shmse_irq_demux,
75 };
76 ALIAS_MV(73180se)