gpio: rcar: Support both edge trigger with DT
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 29 Nov 2013 13:48:00 +0000 (14:48 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 3 Dec 2013 10:26:07 +0000 (11:26 +0100)
commit850dfe17e3c467f50a0b9a527a65831873740c23
treef897f083a75fbce72fc2cc0fe041be27f17a11a9
parentd463c6ff88108d187c73396280f5dae8b4a78e65
gpio: rcar: Support both edge trigger with DT

Some versions of the R-Car GPIO controller support triggering on both
edges of the input signal. Whether this capability is supported is
currently specified in platform data. R-Car GPIO devices instantiated
from the device tree have the capability turned off even when the
hardware supports it.

To fix this, add DT match data support to the driver, initialize both
edge trigger support from match data and enable both edge trigger in
r8a7790 and r8a7791 match data.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-rcar.c