]> rtime.felk.cvut.cz Git - linux-imx.git/commit
pinctrl: sunxi: Add external interrupts support
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Sat, 8 Jun 2013 10:05:44 +0000 (12:05 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 16 Jun 2013 09:57:31 +0000 (11:57 +0200)
commit60242db1a7292cc63ae390f12ec9d62e9e2f6935
treee563fde69b9b305469d92fbce919ff3c96adfa73
parent814d4f2e153dfb337ee894d1f23863e623add4ab
pinctrl: sunxi: Add external interrupts support

The port controller IP found in the Allwinner A10 and A13 can use few of
the pins it manage as an interrupt source, called external interrupts in
the datasheet.

The number of these external interrupts are SoCs specific, but the
current upper limit is 32. In order to work, the external interrupts'
pins have to be muxed to a specific function to generate an interrupt.

This patch adds the irqchip and the needed logic to use the PIO
controller as an interrupt controller.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-sunxi.c
drivers/pinctrl/pinctrl-sunxi.h