]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: vf610: add imx7ulp support
authorDong Aisheng <aisheng.dong@nxp.com>
Tue, 1 Aug 2017 14:04:17 +0000 (22:04 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Aug 2017 13:03:39 +0000 (15:03 +0200)
commit77d37a76737968fe9c39a4e4883d8bc9807ebf59
tree96f5cf417f749f8879452173b491ee77ebd7f10a
parent1796944793af2c2c6dee5bfff90d43ac6a6b3f35
gpio: vf610: add imx7ulp support

The Rapid General-Purpose Input and Output with 2 Ports (RGPIO2P)
on MX7ULP is similar to GPIO on Vibrid. But unlike Vibrid, the
RGPIO2P has an extra Port Data Direction Register (PDDR) used
to configure the individual port pins for input or output.

We introduce a bool have_paddr with fsl_gpio_soc_data data
to distinguish this differences. And we support getting the output
status by checking the GPIO direction in PDDR.

Cc: Alexandre Courbot <gnurou@gmail.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Stefan Agner <stefan@agner.ch>
Cc: Fugang Duan <fugang.duan@nxp.com>
Cc: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-vf610.c