gpio: mxc: enable pad wakeup on i.MX8x platforms
authorShenwei Wang <shenwei.wang@nxp.com>
Thu, 27 Oct 2022 13:08:59 +0000 (08:08 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 8 Nov 2022 10:26:00 +0000 (11:26 +0100)
commitf60c9eac54af28d7b5651fe49944bfd5098550e6
treedf50067dd98c830f467b6c764ff4f53631a09fda
parent7c3ccedaf7a7b0260e8ac128f14d6564da8393fd
gpio: mxc: enable pad wakeup on i.MX8x platforms

On i.MX8QM/QXP/DXL SoCs, even a GPIO is selected as the wakeup source,
the GPIO block will be powered off when system enters into suspend
state. This can greatly reduce the power consumption of suspend state
because the whole partition can be shutdown. This is called PAD wakeup
feature on i.MX8x platform.

This patch adds the noirq suspend/resume hooks and uses the pad wakeup
feature as the default wakeup method for GPIO modules on
i.MX8QM/QXP/DXL platforms.

Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/20221027130859.1444412-6-shenwei.wang@nxp.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mxc.c