OSDN Git Service

gpio/at91: auto request and configure the pio as input when the interrupt is used...
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Tue, 23 Oct 2012 13:56:41 +0000 (15:56 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 24 Oct 2012 12:01:15 +0000 (14:01 +0200)
commita728c7cdd033f0cbeacc302d2409a2428e68e1be
tree2b34e56140060750b691f5c7479a76df3862fa67
parent525fae21317658ae556ca850f3004319004641d1
gpio/at91: auto request and configure the pio as input when the interrupt is used via DT

If we do this

interrupt-parent = <&pioA>;
interrupts = <7 0x0>;

The current core map the irq correctly but the gpio is not configured as input.
The pinctrl configure the pin as gpio with the correct mux parameter but is
not responsible to configure it as input.

So do it during the xlate

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91.c