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

TOMOYO Linux Cross Reference
Linux/arch/sh/boards/mach-se/7780/irq.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  * linux/arch/sh/boards/se/7780/irq.c
  4  *
  5  * Copyright (C) 2006,2007  Nobuhiro Iwamatsu
  6  *
  7  * Hitachi UL SolutionEngine 7780 Support.
  8  */
  9 #include <linux/init.h>
 10 #include <linux/irq.h>
 11 #include <linux/interrupt.h>
 12 #include <linux/io.h>
 13 #include <mach-se/mach/se7780.h>
 14 
 15 #define INTC_BASE       0xffd00000
 16 #define INTC_ICR1       (INTC_BASE+0x1c)
 17 
 18 /*
 19  * Initialize IRQ setting
 20  */
 21 void __init init_se7780_IRQ(void)
 22 {
 23         /* enable all interrupt at FPGA */
 24         __raw_writew(0, FPGA_INTMSK1);
 25         /* mask SM501 interrupt */
 26         __raw_writew((__raw_readw(FPGA_INTMSK1) | 0x0002), FPGA_INTMSK1);
 27         /* enable all interrupt at FPGA */
 28         __raw_writew(0, FPGA_INTMSK2);
 29 
 30         /* set FPGA INTSEL register */
 31         /* FPGA + 0x06 */
 32         __raw_writew( ((IRQPIN_SM501 << IRQPOS_SM501) |
 33                 (IRQPIN_SMC91CX << IRQPOS_SMC91CX)), FPGA_INTSEL1);
 34 
 35         /* FPGA + 0x08 */
 36         __raw_writew(((IRQPIN_EXTINT4 << IRQPOS_EXTINT4) |
 37                 (IRQPIN_EXTINT3 << IRQPOS_EXTINT3) |
 38                 (IRQPIN_EXTINT2 << IRQPOS_EXTINT2) |
 39                 (IRQPIN_EXTINT1 << IRQPOS_EXTINT1)), FPGA_INTSEL2);
 40 
 41         /* FPGA + 0x0A */
 42         __raw_writew((IRQPIN_PCCPW << IRQPOS_PCCPW), FPGA_INTSEL3);
 43 
 44         plat_irq_setup_pins(IRQ_MODE_IRQ); /* install handlers for IRQ0-7 */
 45 
 46         /* ICR1: detect low level(for 2ndcut) */
 47         __raw_writel(0xAAAA0000, INTC_ICR1);
 48 
 49         /*
 50          * FPGA PCISEL register initialize
 51          *
 52          *  CPU  || SLOT1 | SLOT2 | S-ATA | USB
 53          *  -------------------------------------
 54          *  INTA || INTA  | INTD  |  --   | INTB
 55          *  -------------------------------------
 56          *  INTB || INTB  | INTA  |  --   | INTC
 57          *  -------------------------------------
 58          *  INTC || INTC  | INTB  | INTA  |  --
 59          *  -------------------------------------
 60          *  INTD || INTD  | INTC  |  --   | INTA
 61          *  -------------------------------------
 62          */
 63         __raw_writew(0x0013, FPGA_PCI_INTSEL1);
 64         __raw_writew(0xE402, FPGA_PCI_INTSEL2);
 65 }
 66 

~ [ 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