]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb541f3b05be36fffb9fcfacd8cc6a6320cebb3e2
treef897f083a75fbce72fc2cc0fe041be27f17a11a9
parent8e90f7ea7b6d2860f22e1bf765757cd1188c874a
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