accel/ivpu: Move recovery work to system_unbound_wq
[drm/drm-misc.git] / arch / sh / boards / mach-se / 7721 / irq.c
blobe6ef2a2655c37c5a02dc2fb2f4793b324d574b37
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * linux/arch/sh/boards/se/7721/irq.c
5 * Copyright (C) 2008 Renesas Solutions Corp.
6 */
7 #include <linux/init.h>
8 #include <linux/irq.h>
9 #include <linux/interrupt.h>
10 #include <linux/io.h>
11 #include <mach-se/mach/se7721.h>
13 enum {
14 UNUSED = 0,
16 /* board specific interrupt sources */
17 MRSHPC,
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 */
26 { 0, MRSHPC } },
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)
37 /* PPCR */
38 __raw_writew(__raw_readw(0xa4050118) & ~0x00ff, 0xa4050118);
40 register_intc_controller(&intc_desc);
41 intc_set_priority(MRSHPC_IRQ0, 0xf - MRSHPC_IRQ0);