Path: blob/master/arch/sh/boards/mach-highlander/irq-r7780rp.c
26535 views
// SPDX-License-Identifier: GPL-2.01/*2* Renesas Solutions Highlander R7780RP-1 Support.3*4* Copyright (C) 2002 Atom Create Engineering Co., Ltd.5* Copyright (C) 2006 Paul Mundt6* Copyright (C) 2008 Magnus Damm7*/8#include <linux/init.h>9#include <linux/irq.h>10#include <linux/io.h>11#include <mach/highlander.h>1213enum {14UNUSED = 0,1516/* board specific interrupt sources */1718AX88796, /* Ethernet controller */19PSW, /* Push Switch */20CF, /* Compact Flash */2122PCI_A,23PCI_B,24PCI_C,25PCI_D,26};2728static struct intc_vect vectors[] __initdata = {29INTC_IRQ(PCI_A, 65), /* dirty: overwrite cpu vectors for pci */30INTC_IRQ(PCI_B, 66),31INTC_IRQ(PCI_C, 67),32INTC_IRQ(PCI_D, 68),33INTC_IRQ(CF, IRQ_CF),34INTC_IRQ(PSW, IRQ_PSW),35INTC_IRQ(AX88796, IRQ_AX88796),36};3738static struct intc_mask_reg mask_registers[] __initdata = {39{ 0xa5000000, 0, 16, /* IRLMSK */40{ PCI_A, PCI_B, PCI_C, PCI_D, CF, 0, 0, 0,410, 0, 0, 0, 0, 0, PSW, AX88796 } },42};4344static unsigned char irl2irq[HL_NR_IRL] __initdata = {4565, 66, 67, 68,46IRQ_CF, 0, 0, 0,470, 0, 0, 0,48IRQ_AX88796, IRQ_PSW49};5051static DECLARE_INTC_DESC(intc_desc, "r7780rp", vectors,52NULL, mask_registers, NULL, NULL);5354unsigned char * __init highlander_plat_irq_setup(void)55{56if (__raw_readw(0xa5000600)) {57printk(KERN_INFO "Using r7780rp interrupt controller.\n");58register_intc_controller(&intc_desc);59return irl2irq;60}6162return NULL;63}646566