Path: blob/master/arch/sh/boards/mach-se/7721/irq.c
15162 views
/*1* linux/arch/sh/boards/se/7721/irq.c2*3* Copyright (C) 2008 Renesas Solutions Corp.4*5* This file is subject to the terms and conditions of the GNU General Public6* License. See the file "COPYING" in the main directory of this archive7* for more details.8*/9#include <linux/init.h>10#include <linux/irq.h>11#include <linux/interrupt.h>12#include <linux/io.h>13#include <mach-se/mach/se7721.h>1415enum {16UNUSED = 0,1718/* board specific interrupt sources */19MRSHPC,20};2122static struct intc_vect vectors[] __initdata = {23INTC_IRQ(MRSHPC, MRSHPC_IRQ0),24};2526static struct intc_prio_reg prio_registers[] __initdata = {27{ FPGA_ILSR6, 0, 8, 4, /* IRLMSK */28{ 0, MRSHPC } },29};3031static DECLARE_INTC_DESC(intc_desc, "SE7721", vectors,32NULL, NULL, prio_registers, NULL);3334/*35* Initialize IRQ setting36*/37void __init init_se7721_IRQ(void)38{39/* PPCR */40__raw_writew(__raw_readw(0xa4050118) & ~0x00ff, 0xa4050118);4142register_intc_controller(&intc_desc);43intc_set_priority(MRSHPC_IRQ0, 0xf - MRSHPC_IRQ0);44}454647