• Dong Aisheng's avatar
    gpio: vf610: add imx7ulp support · 659d8a62
    Dong Aisheng authored
    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: default avatarDong Aisheng <aisheng.dong@nxp.com>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
gpio-vf610.c 8.16 KB