gpio: gpio-rcar: Support S2RAM
authorHien Dang <hien.dang.eb@renesas.com>
Sun, 4 Feb 2018 19:15:02 +0000 (04:15 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 22 Feb 2018 14:50:20 +0000 (15:50 +0100)
commit51750fb167a054684a18c20e0e78f7f65b12c985
tree1c2d9b5b29661a834f53d71b0afff3f61928846b
parent62c16234bbfd2758ec2fdd1a716d13418c58044d
gpio: gpio-rcar: Support S2RAM

This patch adds an implementation that saves and restores the state of
GPIO configuration on suspend and resume.

Signed-off-by: Hien Dang <hien.dang.eb@renesas.com>
Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
[Modify structure of the bank info to simplify a saving registers]
[Remove DEV_PM_OPS macro]
Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Tested-by: Nguyen Viet Dung <dung.nguyen.aj@renesas.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-rcar.c