]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pinctrl: samsung: add support for eint_fltcon_offset
authorPeter Griffin <peter.griffin@linaro.org>
Fri, 7 Mar 2025 10:29:05 +0000 (10:29 +0000)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 11 Mar 2025 19:37:29 +0000 (20:37 +0100)
commit701d0e910955627734917c3587258aa7e73068bb
tree0c2d5292fe7de534d8a6b8e054c307f27b7a77dc
parenteb76dc973cef741f74ce17d3bba8a7c9f2cc6113
pinctrl: samsung: add support for eint_fltcon_offset

On gs101 SoC the fltcon0 (filter configuration 0) offset isn't at a
fixed offset like previous SoCs as the fltcon1 register only exists when
there are more than 4 pins in the bank.

Add a eint_fltcon_offset and new GS101_PIN_BANK_EINT* macros that take
an additional fltcon_offs variable.

This can then be used in suspend/resume callbacks to save and restore
the fltcon0 and fltcon1 registers.

Fixes: 4a8be01a1a7a ("pinctrl: samsung: Add gs101 SoC pinctrl configuration")
Cc: stable@vger.kernel.org
Reviewed-by: André Draszik <andre.draszik@linaro.org>
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Link: https://lore.kernel.org/r/20250307-pinctrl-fltcon-suspend-v4-1-2d775e486036@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/pinctrl/samsung/pinctrl-exynos-arm64.c
drivers/pinctrl/samsung/pinctrl-exynos.h
drivers/pinctrl/samsung/pinctrl-samsung.c
drivers/pinctrl/samsung/pinctrl-samsung.h