pinctrl: pinctrl-single: Add functions to save and restore pinctrl context
authorKeerthy <j-keerthy@ti.com>
Thu, 17 May 2018 04:40:21 +0000 (10:10 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 23 May 2018 08:30:03 +0000 (10:30 +0200)
commit88a1dbdec682bfcfe4d604a258434ec7bde398b3
treeb9f4dfe02ecdf293326f04fe63b9f5b70453cee3
parentc0136ef651e86a1a7aabe0e1735156526e5d3016
pinctrl: pinctrl-single: Add functions to save and restore pinctrl context

This adds a pair of context save/restore functions to save/restore the
state of a set of pinctrl registers. The context is lost during rtc only
suspend with ddr in self-refresh on am43xx. Currently the save/restore
is being done unconditionally. This will be optimized later with a
pdata-quirk function which will allow is to save/restore only when doing
the rtc only mode with ddr in self refresh.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-single.c