pinctrl: samsung: Fix suspend/resume for Exynos5433 GPF1..5 banks
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 21 May 2018 06:34:49 +0000 (08:34 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Wed, 23 May 2018 19:23:19 +0000 (21:23 +0200)
commit7c24e71c8a6423dfa5a7f19b253726b23af0c507
tree24d3d02a0a4e06bfb21a97e7f7a00586dee0cbae
parent0ca0557e3727951bdc44ea47bc6135b37f90338c
pinctrl: samsung: Fix suspend/resume for Exynos5433 GPF1..5 banks

GPF1..5 banks in Exynos5433 are located in two pinctrl devices: ALIVE and
IMEM. Although they are partially located in ALIVE section, the state of
their registers in IMEM section is lost after suspend/resume cycle. To
properly handle such case, those banks have to be defined with standard
'exynos5433_bank_type_off' type (with PINCFG_TYPE_CON_PDN and
PINCFG_TYPE_PUD_PDN register offsets). This automatically instructs
the generic Samsung pinctrl suspend/resume code to save and restore state
of those registers.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/pinctrl/samsung/pinctrl-exynos.h