1 // SPDX-License-Identifier: GPL-2.0
3 * Renesas Solutions Highlander R7780RP-1 Support.
5 * Copyright (C) 2002 Atom Create Engineering Co., Ltd.
6 * Copyright (C) 2006 Paul Mundt
7 * Copyright (C) 2008 Magnus Damm
9 #include <linux/init.h>
10 #include <linux/irq.h>
12 #include <mach/highlander.h>
17 /* board specific interrupt sources */
19 AX88796
, /* Ethernet controller */
20 PSW
, /* Push Switch */
21 CF
, /* Compact Flash */
29 static struct intc_vect vectors
[] __initdata
= {
30 INTC_IRQ(PCI_A
, 65), /* dirty: overwrite cpu vectors for pci */
35 INTC_IRQ(PSW
, IRQ_PSW
),
36 INTC_IRQ(AX88796
, IRQ_AX88796
),
39 static struct intc_mask_reg mask_registers
[] __initdata
= {
40 { 0xa5000000, 0, 16, /* IRLMSK */
41 { PCI_A
, PCI_B
, PCI_C
, PCI_D
, CF
, 0, 0, 0,
42 0, 0, 0, 0, 0, 0, PSW
, AX88796
} },
45 static unsigned char irl2irq
[HL_NR_IRL
] __initdata
= {
52 static DECLARE_INTC_DESC(intc_desc
, "r7780rp", vectors
,
53 NULL
, mask_registers
, NULL
, NULL
);
55 unsigned char * __init
highlander_plat_irq_setup(void)
57 if (__raw_readw(0xa5000600)) {
58 printk(KERN_INFO
"Using r7780rp interrupt controller.\n");
59 register_intc_controller(&intc_desc
);