Jamie Lenehan | a09749d | 2006-09-27 15:05:39 +0900 | [diff] [blame] | 1 | /* |
Jamie Lenehan | ea0f8fe | 2006-12-06 12:05:02 +0900 | [diff] [blame] | 2 | * arch/sh/boards/titan/setup.c - Setup for Titan |
| 3 | * |
| 4 | * Copyright (C) 2006 Jamie Lenehan |
| 5 | * |
| 6 | * This file is subject to the terms and conditions of the GNU General Public |
| 7 | * License. See the file "COPYING" in the main directory of this archive |
| 8 | * for more details. |
Jamie Lenehan | a09749d | 2006-09-27 15:05:39 +0900 | [diff] [blame] | 9 | */ |
Jamie Lenehan | a09749d | 2006-09-27 15:05:39 +0900 | [diff] [blame] | 10 | #include <linux/init.h> |
Jamie Lenehan | ea0f8fe | 2006-12-06 12:05:02 +0900 | [diff] [blame] | 11 | #include <linux/irq.h> |
Paul Mundt | 7639a45 | 2008-10-20 13:02:48 +0900 | [diff] [blame] | 12 | #include <mach/titan.h> |
Jamie Lenehan | a09749d | 2006-09-27 15:05:39 +0900 | [diff] [blame] | 13 | #include <asm/io.h> |
| 14 | |
Jamie Lenehan | a09749d | 2006-09-27 15:05:39 +0900 | [diff] [blame] | 15 | static void __init init_titan_irq(void) |
| 16 | { |
| 17 | /* enable individual interrupt mode for externals */ |
Magnus Damm | d59645d | 2007-08-03 14:23:35 +0900 | [diff] [blame] | 18 | plat_irq_setup_pins(IRQ_MODE_IRQ); |
Jamie Lenehan | a09749d | 2006-09-27 15:05:39 +0900 | [diff] [blame] | 19 | } |
| 20 | |
Paul Mundt | 82f81f4 | 2007-05-15 15:19:34 +0900 | [diff] [blame] | 21 | static struct sh_machine_vector mv_titan __initmv = { |
Paul Mundt | 2c7834a | 2006-09-27 18:17:31 +0900 | [diff] [blame] | 22 | .mv_name = "Titan", |
Jamie Lenehan | a09749d | 2006-09-27 15:05:39 +0900 | [diff] [blame] | 23 | |
| 24 | .mv_inb = titan_inb, |
| 25 | .mv_inw = titan_inw, |
| 26 | .mv_inl = titan_inl, |
| 27 | .mv_outb = titan_outb, |
| 28 | .mv_outw = titan_outw, |
| 29 | .mv_outl = titan_outl, |
| 30 | |
| 31 | .mv_inb_p = titan_inb_p, |
| 32 | .mv_inw_p = titan_inw, |
| 33 | .mv_inl_p = titan_inl, |
| 34 | .mv_outb_p = titan_outb_p, |
| 35 | .mv_outw_p = titan_outw, |
| 36 | .mv_outl_p = titan_outl, |
| 37 | |
| 38 | .mv_insl = titan_insl, |
| 39 | .mv_outsl = titan_outsl, |
| 40 | |
Jamie Lenehan | a09749d | 2006-09-27 15:05:39 +0900 | [diff] [blame] | 41 | .mv_ioport_map = titan_ioport_map, |
| 42 | |
| 43 | .mv_init_irq = init_titan_irq, |
Jamie Lenehan | a09749d | 2006-09-27 15:05:39 +0900 | [diff] [blame] | 44 | }; |