blob: 1deee85566428196b4cf775f54f797494e8b6a0d [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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
Linus Torvalds1da177e2005-04-16 15:20:36 -070012#include <linux/init.h>
Paul Mundt3b4d9532007-02-13 15:42:28 +090013#include <linux/platform_device.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070014#include <asm/machvec.h>
Paul Mundt373e68b2006-09-27 15:41:24 +090015#include <asm/se73180.h>
Paul Mundta328ff92006-09-27 16:14:54 +090016#include <asm/irq.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070017
Linus Torvalds1da177e2005-04-16 15:20:36 -070018void init_73180se_IRQ(void);
19
Paul Mundt3b4d9532007-02-13 15:42:28 +090020static struct resource heartbeat_resources[] = {
21 [0] = {
22 .start = PA_LED,
23 .end = PA_LED + 8 - 1,
24 .flags = IORESOURCE_MEM,
25 },
26};
27
28static struct platform_device heartbeat_device = {
29 .name = "heartbeat",
30 .id = -1,
31 .num_resources = ARRAY_SIZE(heartbeat_resources),
32 .resource = heartbeat_resources,
33};
34
35static struct platform_device *se73180_devices[] __initdata = {
36 &heartbeat_device,
37};
38
39static int __init se73180_devices_setup(void)
40{
Paul Mundt9a412842007-06-04 11:07:23 +090041 return platform_add_devices(se73180_devices,
42 ARRAY_SIZE(se73180_devices));
Paul Mundt3b4d9532007-02-13 15:42:28 +090043}
44__initcall(se73180_devices_setup);
45
Linus Torvalds1da177e2005-04-16 15:20:36 -070046/*
47 * The Machine Vector
48 */
Paul Mundt82f81f42007-05-15 15:19:34 +090049static struct sh_machine_vector mv_73180se __initmv = {
Paul Mundt2c7834a2006-09-27 18:17:31 +090050 .mv_name = "SolutionEngine 73180",
Linus Torvalds1da177e2005-04-16 15:20:36 -070051 .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,
Paul Mundta328ff92006-09-27 16:14:54 +090074 .mv_irq_demux = shmse_irq_demux,
Linus Torvalds1da177e2005-04-16 15:20:36 -070075};