[PATCH V2] imx9: scmi: clock: Correct imx_clk_scmi_enable

Peng Fan (OSS) peng.fan at oss.nxp.com
Wed Dec 17 09:20:59 CET 2025


From: Peng Fan <peng.fan at nxp.com>

i.MX9 SCMI Supports CLK SCMI version 3.0, so need to use
"scmi_clk_state_in_v2".

Per Spec about extended_config_val: "This field is used to set extended
configuration of the clock device. It can be ignored if extended config
type specified by Bits[23:16] of the attributes field is set to 0."

So no need initialize extended_config_val.

Signed-off-by: Peng Fan <peng.fan at nxp.com>
---

V2:
 drop fixes tag

 arch/arm/mach-imx/imx9/scmi/clock_scmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/imx9/scmi/clock_scmi.c b/arch/arm/mach-imx/imx9/scmi/clock_scmi.c
index 9030dbf600d..a502f19bca5 100644
--- a/arch/arm/mach-imx/imx9/scmi/clock_scmi.c
+++ b/arch/arm/mach-imx/imx9/scmi/clock_scmi.c
@@ -10,7 +10,7 @@
 
 int imx_clk_scmi_enable(u32 clock_id, bool enable)
 {
-	struct scmi_clk_state_in_v1 in = {
+	struct scmi_clk_state_in_v2 in = {
 		.clock_id = clock_id,
 		.attributes = !!enable,
 	};
-- 
2.51.0



More information about the U-Boot mailing list