1. 18 Mar, 2013 5 commits
    • Magnus Damm's avatar
      ARM: shmobile: INTC External IRQ pin driver on r8a7779 · 8e56e6d5
      Magnus Damm authored
      Update the r8a7779 IRQ code to make use of the
      INTC External IRQ pin driver for external
      interrupt pins IRQ0 -> IRQ3.
      
      The r8a7779 SoC can like older SH SoCs configure
      to use the IRQ0 -> IRQ3 signals as individual
      interrupts or a combined IRL mode.
      
      Without this patch the r8a7779 SoC code does
      not fully support external IRQ pins in individual
      IRQ mode. The r8a7779 PFC code does not yet have
      gpio_to_irq() support so no need to update such
      code.
      
      At this point the DT reference implementations
      are not covered. In the future such code shall
      tie in the INTC External IRQ pin driver via
      DT, so this kind of verbose code is not needed
      for the long term DT case.
      Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
      Tested-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
      Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
      8e56e6d5
    • Magnus Damm's avatar
      ARM: shmobile: INTC External IRQ pin driver on sh73a0 · 341eb546
      Magnus Damm authored
      Adjust the sh73a0 IRQ code to make use of the
      INTC External IRQ pin driver for external
      interrupt pins IRQ0 -> IRQ31.
      
      This removes quite a bit of special-case code
      in intc-sh73a0.c but the number of lines get
      replaced with platform device information in
      setup-sh73a0.c. The PFC code is also adjusted
      to make gpio_to_irq() return the correct
      interrupt number.
      
      At this point the DT reference implementations
      are not covered. In the future such code shall
      tie in the INTC External IRQ pin driver via
      DT, so this kind of verbose code is not needed
      for the long term DT case.
      Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
      Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
      341eb546
    • Magnus Damm's avatar
      ARM: shmobile: irq_pin() for static IRQ pin assignment · 1f4f11c6
      Magnus Damm authored
      Add the macro irq_pin() to let board-specific code using
      platform devices tie in external IRQn pins in a common way.
      Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
      Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
      1f4f11c6
    • Magnus Damm's avatar
      irqchip: Renesas INTC External IRQ pin driver · 44358048
      Magnus Damm authored
      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: default avatarMagnus Damm <damm@opensource.se>
      Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
      44358048
    • Phil Edworthy's avatar
      r8a7779: Add Display Unit clock support · d75bc78b
      Phil Edworthy authored
      Signed-off-by: default avatarPhil Edworthy <phil.edworthy@renesas.com>
      [Rename device from to rcarfb to rcar-du]
      Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
      [Manual conflict resolution]
      Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
      d75bc78b
  2. 12 Mar, 2013 35 commits