diff options
author | Etienne Carriere <etienne.carriere@linaro.org> | 2022-02-21 09:22:41 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-03-02 17:42:06 -0500 |
commit | 10d3e5d20b284025cb6a734fcc7e1c8231ff56b6 (patch) | |
tree | 27201b686319e0f8fa61c171f24377bb35837eab /arch | |
parent | 6983710a31a0d6fb782eb0ea18b9325e4075f4c3 (diff) | |
download | u-boot-10d3e5d20b284025cb6a734fcc7e1c8231ff56b6.zip u-boot-10d3e5d20b284025cb6a734fcc7e1c8231ff56b6.tar.gz u-boot-10d3e5d20b284025cb6a734fcc7e1c8231ff56b6.tar.bz2 |
firmware: scmi: fix sandbox and related tests for clock discovery
Updates sandbox SCMI clock driver and tests since enabling CCF will
mandate clock discovery that is all exposed SCMI clocks shall be
discovered at initialization. For this reason, sandbox SCMI clock
driver must emulate all clocks exposed by SCMI server, not only those
effectively consumed by some other U-Boot devices.
Therefore the sandbox SCMI test driver exposes 3 clocks (IDs 0, 1 and 2)
and sandbox SCMI clock consumer driver gets 2 of them.
Cc: Simon Glass <sjg@chromium.org>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sandbox/dts/test.dts | 2 | ||||
-rw-r--r-- | arch/sandbox/include/asm/scmi_test.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index 30874b0..3d206fd 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -1392,7 +1392,7 @@ sandbox_scmi { compatible = "sandbox,scmi-devices"; - clocks = <&clk_scmi 7>, <&clk_scmi 3>; + clocks = <&clk_scmi 2>, <&clk_scmi 0>; resets = <&reset_scmi 3>; regul0-supply = <®ul0_scmi>; regul1-supply = <®ul1_scmi>; diff --git a/arch/sandbox/include/asm/scmi_test.h b/arch/sandbox/include/asm/scmi_test.h index 054be5f..c72ec1e 100644 --- a/arch/sandbox/include/asm/scmi_test.h +++ b/arch/sandbox/include/asm/scmi_test.h @@ -17,7 +17,6 @@ struct sandbox_scmi_service; * @rate: Clock rate in Hertz */ struct sandbox_scmi_clk { - uint id; bool enabled; ulong rate; }; |