Path: blob/master/arch/sh/boards/mach-highlander/irq-r7780rp.c
15126 views
/*1* Renesas Solutions Highlander R7780RP-1 Support.2*3* Copyright (C) 2002 Atom Create Engineering Co., Ltd.4* Copyright (C) 2006 Paul Mundt5* Copyright (C) 2008 Magnus Damm6*7* This file is subject to the terms and conditions of the GNU General Public8* License. See the file "COPYING" in the main directory of this archive9* for more details.10*/11#include <linux/init.h>12#include <linux/irq.h>13#include <linux/io.h>14#include <mach/highlander.h>1516enum {17UNUSED = 0,1819/* board specific interrupt sources */2021AX88796, /* Ethernet controller */22PSW, /* Push Switch */23CF, /* Compact Flash */2425PCI_A,26PCI_B,27PCI_C,28PCI_D,29};3031static struct intc_vect vectors[] __initdata = {32INTC_IRQ(PCI_A, 65), /* dirty: overwrite cpu vectors for pci */33INTC_IRQ(PCI_B, 66),34INTC_IRQ(PCI_C, 67),35INTC_IRQ(PCI_D, 68),36INTC_IRQ(CF, IRQ_CF),37INTC_IRQ(PSW, IRQ_PSW),38INTC_IRQ(AX88796, IRQ_AX88796),39};4041static struct intc_mask_reg mask_registers[] __initdata = {42{ 0xa5000000, 0, 16, /* IRLMSK */43{ PCI_A, PCI_B, PCI_C, PCI_D, CF, 0, 0, 0,440, 0, 0, 0, 0, 0, PSW, AX88796 } },45};4647static unsigned char irl2irq[HL_NR_IRL] __initdata = {4865, 66, 67, 68,49IRQ_CF, 0, 0, 0,500, 0, 0, 0,51IRQ_AX88796, IRQ_PSW52};5354static DECLARE_INTC_DESC(intc_desc, "r7780rp", vectors,55NULL, mask_registers, NULL, NULL);5657unsigned char * __init highlander_plat_irq_setup(void)58{59if (__raw_readw(0xa5000600)) {60printk(KERN_INFO "Using r7780rp interrupt controller.\n");61register_intc_controller(&intc_desc);62return irl2irq;63}6465return NULL;66}676869