clk: stm32mp1: new compatible for secure RCC support
authorGabriel Fernandez <gabriel.fernandez@foss.st.com>
Thu, 17 Jun 2021 05:18:14 +0000 (07:18 +0200)
committerStephen Boyd <sboyd@kernel.org>
Mon, 28 Jun 2021 23:09:10 +0000 (16:09 -0700)
commit21e743300dd0b9e57425de4a9ba651493b165e03
tree9a0283f1d05e9549b1abcbbce0b50f27e68088cf
parent94b7888b67c4e301635bbfdea1403ed0693242fd
clk: stm32mp1: new compatible for secure RCC support

Platform STM32MP1 can be used in configuration where some clock
resources cannot be accessed by Linux kernel when executing in non-secure
state of the CPU(s).
In such configuration, the RCC clock driver must not register clocks
it cannot access.
They are expected to be registered from another clock driver such
as the SCMI clock driver.
This change uses specific compatible string "st,stm32mp1-rcc-secure"
to specify RCC clock driver configuration where RCC is secure.

Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
Link: https://lore.kernel.org/r/20210617051814.12018-12-gabriel.fernandez@foss.st.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/Kconfig
drivers/clk/clk-stm32mp1.c