~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/sh/boards/mach-highlander/irq-r7780rp.c

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0
  2 /*
  3  * Renesas Solutions Highlander R7780RP-1 Support.
  4  *
  5  * Copyright (C) 2002  Atom Create Engineering Co., Ltd.
  6  * Copyright (C) 2006  Paul Mundt
  7  * Copyright (C) 2008  Magnus Damm
  8  */
  9 #include <linux/init.h>
 10 #include <linux/irq.h>
 11 #include <linux/io.h>
 12 #include <mach/highlander.h>
 13 
 14 enum {
 15         UNUSED = 0,
 16 
 17         /* board specific interrupt sources */
 18 
 19         AX88796,          /* Ethernet controller */
 20         PSW,              /* Push Switch */
 21         CF,               /* Compact Flash */
 22 
 23         PCI_A,
 24         PCI_B,
 25         PCI_C,
 26         PCI_D,
 27 };
 28 
 29 static struct intc_vect vectors[] __initdata = {
 30         INTC_IRQ(PCI_A, 65), /* dirty: overwrite cpu vectors for pci */
 31         INTC_IRQ(PCI_B, 66),
 32         INTC_IRQ(PCI_C, 67),
 33         INTC_IRQ(PCI_D, 68),
 34         INTC_IRQ(CF, IRQ_CF),
 35         INTC_IRQ(PSW, IRQ_PSW),
 36         INTC_IRQ(AX88796, IRQ_AX88796),
 37 };
 38 
 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 } },
 43 };
 44 
 45 static unsigned char irl2irq[HL_NR_IRL] __initdata = {
 46         65, 66, 67, 68,
 47         IRQ_CF, 0, 0, 0,
 48         0, 0, 0, 0,
 49         IRQ_AX88796, IRQ_PSW
 50 };
 51 
 52 static DECLARE_INTC_DESC(intc_desc, "r7780rp", vectors,
 53                          NULL, mask_registers, NULL, NULL);
 54 
 55 unsigned char * __init highlander_plat_irq_setup(void)
 56 {
 57         if (__raw_readw(0xa5000600)) {
 58                 printk(KERN_INFO "Using r7780rp interrupt controller.\n");
 59                 register_intc_controller(&intc_desc);
 60                 return irl2irq;
 61         }
 62 
 63         return NULL;
 64 }
 65 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php