]> www.infradead.org Git - users/jedix/linux-maple.git/commit
soc: samsung: exynos-pmu: update to use of_syscon_register_regmap()
authorPeter Griffin <peter.griffin@linaro.org>
Fri, 21 Jun 2024 11:55:44 +0000 (12:55 +0100)
committerLee Jones <lee@kernel.org>
Wed, 26 Jun 2024 15:47:05 +0000 (16:47 +0100)
commit35d6b98c625867209bc47df99cf03edf4280799f
tree9086bb23c561f8776373281624a4393ea928f20a
parent769cb63166d90f1fadafa4352f180cbd96b6cb77
soc: samsung: exynos-pmu: update to use of_syscon_register_regmap()

For SoCs like gs101 that need a special regmap, register this with
of_syscon_register_regmap api, so it can be returned by
syscon_regmap_lookup_by_phandle() and friends.

For SoCs that don't require a custom regmap, revert back to syscon
creating the mmio regmap rather than duplicating the logic here.

exynos_get_pmu_regmap_by_phandle() api is also updated to retrieve
the regmap via syscon. The exynos_get_pmu_regmap_by_phandle() api
is kept around until fw_devlink support for syscon property is added
for the pinctrl-samsung driver that also runs at postcore_initcall
level.

All other exynos client drivers can revert back to
syscon_regmap_lookup_by_phandle().

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Tested-by: Will McVicker <willmcvicker@google.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240621115544.1655458-3-peter.griffin@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/soc/samsung/exynos-pmu.c