gpio: mxc: add power management support
authorAnson Huang <Anson.Huang@nxp.com>
Wed, 18 Jul 2018 01:25:32 +0000 (09:25 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 29 Jul 2018 20:23:17 +0000 (22:23 +0200)
commitc19fdaeea0aa1938cf6a35aa97f9ea6fd8b22476
tree015617d756048f7534b62082d698081446a4e6ae
parent40bb5d725e797ea140e5f83822bf2b5328a2d47f
gpio: mxc: add power management support

GPIO registers could lose context on i.MX7D, when
enter LPSR mode, the whole SoC will be powered off
except LPSR domain, GPIO banks will lose context
in this case, need to restore the context after
resume from LPSR mode.

This patch adds new compatible string for i.MX7D
which supports GPIO power off feature in suspend,
and adds the GPIO save/restore operations in noirq
suspend/resume phase, since GPIO is fundamental
module which could be used by other peripherals'
resume phase.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mxc.c