| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | #include <linux/init.h> |
| Paul Mundt | 3b4d953 | 2007-02-13 15:42:28 +0900 | [diff] [blame] | 13 | #include <linux/platform_device.h> |
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | #include <asm/machvec.h> |
| Paul Mundt | 373e68b | 2006-09-27 15:41:24 +0900 | [diff] [blame] | 15 | #include <asm/se73180.h> |
| Paul Mundt | a328ff9 | 2006-09-27 16:14:54 +0900 | [diff] [blame] | 16 | #include <asm/irq.h> |
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | |
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | void init_73180se_IRQ(void); |
| 19 | |
| Paul Mundt | 3b4d953 | 2007-02-13 15:42:28 +0900 | [diff] [blame] | 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 | { |
| Paul Mundt | 9a41284 | 2007-06-04 11:07:23 +0900 | [diff] [blame] | 41 | return platform_add_devices(se73180_devices, |
| 42 | ARRAY_SIZE(se73180_devices)); |
| Paul Mundt | 3b4d953 | 2007-02-13 15:42:28 +0900 | [diff] [blame] | 43 | } |
| 44 | __initcall(se73180_devices_setup); |
| 45 | |
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | /* |
| 47 | * The Machine Vector |
| 48 | */ |
| Paul Mundt | 82f81f4 | 2007-05-15 15:19:34 +0900 | [diff] [blame] | 49 | static struct sh_machine_vector mv_73180se __initmv = { |
| Paul Mundt | 2c7834a | 2006-09-27 18:17:31 +0900 | [diff] [blame] | 50 | .mv_name = "SolutionEngine 73180", |
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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, |
| Paul Mundt | a328ff9 | 2006-09-27 16:14:54 +0900 | [diff] [blame] | 74 | .mv_irq_demux = shmse_irq_demux, |
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 75 | }; |