mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
0b7c607502
Some Exynos based SoCs like Tensor gs101 protect the PMU registers for security hardening reasons so that they are only write accessible in el3 via an SMC call. As most Exynos drivers that need to write PMU registers currently obtain a regmap via syscon (phys, pinctrl, watchdog). Support for the above usecase is implemented in this driver using a custom regmap similar to syscon to handle the SMC call. Platforms that don't secure PMU registers, get a mmio regmap like before. As regmaps abstract out the underlying register access changes to the leaf drivers are minimal. A new API exynos_get_pmu_regmap_by_phandle() is provided for leaf drivers that currently use syscon_regmap_lookup_by_phandle(). This also handles deferred probing. Tested-by: Sam Protsenko <semen.protsenko@linaro.org> Tested-by: Alexey Klimov <alexey.klimov@linaro.org> Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org> Signed-off-by: Peter Griffin <peter.griffin@linaro.org> Link: https://lore.kernel.org/r/20240220220613.797068-2-peter.griffin@linaro.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> |
||
---|---|---|
.. | ||
exynos4-pmu.c | ||
exynos3250-pmu.c | ||
exynos5250-pmu.c | ||
exynos5420-pmu.c | ||
exynos5422-asv.c | ||
exynos5422-asv.h | ||
exynos-asv.c | ||
exynos-asv.h | ||
exynos-chipid.c | ||
exynos-pmu.c | ||
exynos-pmu.h | ||
exynos-regulator-coupler.c | ||
exynos-usi.c | ||
Kconfig | ||
Makefile | ||
s3c-pm-check.c |