diff options
author | Peter Griffin <[email protected]> | 2024-02-20 22:06:12 +0000 |
---|---|---|
committer | Krzysztof Kozlowski <[email protected]> | 2024-02-25 11:39:23 +0100 |
commit | 0b7c6075022ccff529318597dc6b165dd6a25c8f (patch) | |
tree | c4bade4c8908f30099e8fee7972e7330c7379b70 /scripts/generate_rust_analyzer.py | |
parent | 9690b9de81d1ad40a70b3d34b9d7e26486a5e83a (diff) |
soc: samsung: exynos-pmu: Add regmap support for SoCs that protect PMU regs
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 <[email protected]>
Tested-by: Alexey Klimov <[email protected]>
Reviewed-by: Sam Protsenko <[email protected]>
Signed-off-by: Peter Griffin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions