acpiphp: Execute ACPI _REG method for hotadded devices
[linux/fpc-iii.git] / arch / sh / boards / mach-se / 7721 / irq.c
blobb417acc4dad0d06a493d610650b258e5eee74ca0
1 /*
2 * linux/arch/sh/boards/se/7721/irq.c
4 * Copyright (C) 2008 Renesas Solutions Corp.
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.
9 */
10 #include <linux/init.h>
11 #include <linux/irq.h>
12 #include <linux/interrupt.h>
13 #include <linux/io.h>
14 #include <mach-se/mach/se7721.h>
16 enum {
17 UNUSED = 0,
19 /* board specific interrupt sources */
20 MRSHPC,
23 static struct intc_vect vectors[] __initdata = {
24 INTC_IRQ(MRSHPC, MRSHPC_IRQ0),
27 static struct intc_prio_reg prio_registers[] __initdata = {
28 { FPGA_ILSR6, 0, 8, 4, /* IRLMSK */
29 { 0, MRSHPC } },
32 static DECLARE_INTC_DESC(intc_desc, "SE7721", vectors,
33 NULL, NULL, prio_registers, NULL);
36 * Initialize IRQ setting
38 void __init init_se7721_IRQ(void)
40 /* PPCR */
41 ctrl_outw(ctrl_inw(0xa4050118) & ~0x00ff, 0xa4050118);
43 register_intc_controller(&intc_desc);
44 intc_set_priority(MRSHPC_IRQ0, 0xf - MRSHPC_IRQ0);