1. 18 3月, 2013 1 次提交
    • M
      irqchip: Renesas INTC External IRQ pin driver · 44358048
      Magnus Damm 提交于
      This patch adds a driver for external IRQ pins connected
      to the INTC block on recent SoCs from Renesas.
      
      The INTC hardware block usually contains a rather wide
      range of features ranging from external IRQ pin handling
      to legacy interrupt controller support. On older SoCs
      the INTC is used as a general purpose interrupt controller
      both for external IRQ pins and on-chip devices.
      
      On more recent ARM based SoCs with Cortex-A9 the main
      interrupt controller is the GIC, but IRQ trigger setup
      still need to happen in the INTC hardware block.
      
      This driver implements the glue code needed to configure
      IRQ trigger and also handle mask/unmask and demux of
      external IRQ pins hooked up from the INTC to the GIC.
      
      Tested on sh73a0 and r8a7779. The hardware varies quite
      a bit with SoC model, for instance register width and
      bitfield widths vary wildly. The driver requires one GIC
      SPI per external IRQ pin to operate.  Each driver instance
      will handle up to 8 external IRQ pins.
      
      The SoCs using this driver are currently mainly used
      together with regular platform devices so this driver
      allows configuration via platform data to support things
      like static interrupt base address. DT support will
      be added incrementally in the not so distant future.
      Signed-off-by: NMagnus Damm <damm@opensource.se>
      Acked-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NSimon Horman <horms+renesas@verge.net.au>
      44358048
  2. 13 1月, 2013 2 次提交
  3. 11 1月, 2013 1 次提交
    • T
      irqchip: add basic infrastructure · f6e916b8
      Thomas Petazzoni 提交于
      With the recent creation of the drivers/irqchip/ directory, it is
      desirable to move irq controller drivers here. At the moment, the only
      driver here is irq-bcm2835, the driver for the irq controller found in
      the ARM BCM2835 SoC, present in Rasberry Pi systems. This irq
      controller driver was exporting its initialization function and its
      irq handling function through a header file in
      <linux/irqchip/bcm2835.h>.
      
      When proposing to also move another irq controller driver in
      drivers/irqchip, Rob Herring raised the very valid point that moving
      things to drivers/irqchip was good in order to remove more stuff from
      arch/arm, but if it means adding gazillions of headers files in
      include/linux/irqchip/, it would not be very nice.
      
      So, upon the suggestion of Rob Herring and Arnd Bergmann, this commit
      introduces a small infrastructure that defines a central
      irqchip_init() function in drivers/irqchip/irqchip.c, which is meant
      to be called as the ->init_irq() callback of ARM platforms. This
      function calls of_irq_init() with an array of match strings and init
      functions generated from a special linker section.
      
      Note that the irq controller driver initialization function is
      responsible for setting the global handle_arch_irq() variable, so that
      ARM platforms no longer have to define the ->handle_irq field in their
      DT_MACHINE structure.
      
      A global header, <linux/irqchip.h> is also added to expose the single
      irqchip_init() function to the reset of the kernel.
      
      A further commit moves the BCM2835 irq controller driver to this new
      small infrastructure, therefore removing the include/linux/irqchip/
      directory.
      Signed-off-by: NThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Reviewed-by: NStephen Warren <swarren@wwwdotorg.org>
      Reviewed-by: NRob Herring <rob.herring@calxeda.com>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      [rob.herring: reword commit message to reflect use of linker sections.]
      Signed-off-by: NRob Herring <rob.herring@calxeda.com>
      f6e916b8
  4. 05 11月, 2012 1 次提交
  5. 25 9月, 2012 1 次提交
  6. 20 9月, 2012 1 次提交
    • S
      ARM: bcm2835: add interrupt controller driver · 89214f00
      Simon Arlott 提交于
      The BCM2835 contains a custom interrupt controller, which supports 72
      interrupt sources using a 2-level register scheme. The interrupt
      controller, or the HW block containing it, is referred to occasionally
      as "armctrl" in the SoC documentation, hence the symbol naming in the
      code.
      
      This patch was extracted from git://github.com/lp0/linux.git branch
      rpi-split as of 2012/09/08, and modified as follows:
      
      * s/bcm2708/bcm2835/.
      * Modified device tree vendor prefix.
      * Moved implementation to drivers/irchip/.
      * Added devicetree documentation, and hence removed list of IRQs from
        bcm2835.dtsi.
      * Changed shift in MAKE_HWIRQ() and HWIRQ_BANK() from 8 to 5 to reduce
        the size of the hwirq space, and pass the total size of the hwirq space
        to irq_domain_add_linear(), rather than just the number of valid hwirqs;
        the two are different due to the hwirq space being sparse.
      * Added the interrupt controller DT node to the top-level of the DT,
        rather than nesting it inside a /axi node. Hence, changed the reg value
        since /axi had a ranges property. This seems simpler to me, but I'm not
        sure if everyone will like this change or not.
      * Don't set struct irq_domain_ops.map = irq_domain_simple_map, hence
        removing the need to patch include/linux/irqdomain.h or
        kernel/irq/irqdomain.c.
      * Simplified armctrl_of_init() using of_iomap().
      * Removed unused IS_VALID_BANK()/IS_VALID_IRQ() macros.
      * Renamed armctrl_handle_irq() to prevent possible symbol clashes.
      * Made armctrl_of_init() static.
      * Removed comment "Each bank is registered as a separate interrupt
        controller" since this is no longer true.
      * Removed FSF address from license header.
      * Added my name to copyright header.
      Signed-off-by: NChris Boot <bootc@bootc.net>
      Signed-off-by: NSimon Arlott <simon@fire.lp0.eu>
      Signed-off-by: NDom Cobley <popcornmix@gmail.com>
      Signed-off-by: NDom Cobley <dc4@broadcom.com>
      Signed-off-by: NStephen Warren <swarren@wwwdotorg.org>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      89214f00
  7. 14 5月, 2012 1 次提交
  8. 28 2月, 2012 2 次提交