phy: samsung-ufs: use exynos_get_pmu_regmap_by_phandle() to obtain PMU regmap
authorPeter Griffin <peter.griffin@linaro.org>
Thu, 4 Apr 2024 12:25:51 +0000 (13:25 +0100)
committerVinod Koul <vkoul@kernel.org>
Sat, 6 Apr 2024 08:57:17 +0000 (14:27 +0530)
commitf2c6d0fa197a1558f4ef50162bb87e6644af232d
treea98e4c39b6fc41ac55f0e225aaa093fc1908790d
parent724e4fc053fe217d0ed477517ae68db11feab1f5
phy: samsung-ufs: use exynos_get_pmu_regmap_by_phandle() to obtain PMU regmap

This allows us to obtain a PMU regmap that is created by the exynos-pmu
driver. Platforms such as gs101 require exynos-pmu created regmap to
issue SMC calls for PMU register accesses. Existing platforms still get
a MMIO regmap as before.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Reviewed-by: André Draszik <andre.draszik@linaro.org>
Link: https://lore.kernel.org/r/20240404122559.898930-10-peter.griffin@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/samsung/phy-samsung-ufs.c