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)
commit659d8a62311ffc61742927350534643ad58aee81
tree96f5cf417f749f8879452173b491ee77ebd7f10a
parentca1f3ae3154ad6d08caa740c99be0d86644a4e44
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