1 // SPDX-License-Identifier: GPL-2.0
3 * linux/arch/sh/boards/se/7721/irq.c
5 * Copyright (C) 2008 Renesas Solutions Corp.
7 #include <linux/init.h>
9 #include <linux/interrupt.h>
11 #include <mach-se/mach/se7721.h>
16 /* board specific interrupt sources */
20 static struct intc_vect vectors
[] __initdata
= {
21 INTC_IRQ(MRSHPC
, MRSHPC_IRQ0
),
24 static struct intc_prio_reg prio_registers
[] __initdata
= {
25 { FPGA_ILSR6
, 0, 8, 4, /* IRLMSK */
29 static DECLARE_INTC_DESC(intc_desc
, "SE7721", vectors
,
30 NULL
, NULL
, prio_registers
, NULL
);
33 * Initialize IRQ setting
35 void __init
init_se7721_IRQ(void)
38 __raw_writew(__raw_readw(0xa4050118) & ~0x00ff, 0xa4050118);
40 register_intc_controller(&intc_desc
);
41 intc_set_priority(MRSHPC_IRQ0
, 0xf - MRSHPC_IRQ0
);