irq-imgpdc: add ImgTec PDC irqchip driver
authorJames Hogan <james.hogan@imgtec.com>
Mon, 22 Apr 2013 14:43:50 +0000 (15:43 +0100)
committerJames Hogan <james.hogan@imgtec.com>
Wed, 21 Aug 2013 13:17:56 +0000 (14:17 +0100)
commitb6ef9161e43ad58c3824bd76dc87716276f0cd70
tree5413c752ae627908fbeb7be26ff6826e033ef8f5
parentd668d9ed068382c450cb31b96015e8683f0f74fc
irq-imgpdc: add ImgTec PDC irqchip driver

Add irqchip driver for the ImgTec PowerDown Controller (PDC) as found in
the TZ1090. The PDC has a number of general system wakeup (SysWake)
interrupts (which would for example be connected to a power button or an
external peripheral), and a number of peripheral interrupts which can
also wake the system but are connected straight to specific low-power
peripherals (such as RTC or Infrared). It has a single interrupt output
for SysWakes, and individual interrupt outputs for each peripheral.

The driver demuxes the SysWake interrupt line, and passes the peripheral
interrupts straight through. It also handles the set_wake interrupt
operation to enable/disable the appropriate wake event bits.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Rob Landley <rob@landley.net>
Cc: linux-metag@vger.kernel.org
Cc: linux-doc@vger.kernel.org
Cc: devicetree-discuss@lists.ozlabs.org
Documentation/devicetree/bindings/metag/pdc-intc.txt [new file with mode: 0644]
drivers/irqchip/Kconfig
drivers/irqchip/Makefile
drivers/irqchip/irq-imgpdc.c [new file with mode: 0644]