[PATCH RFC 3/3] clk: sandbox: reverse the order to register clk i2c_root and i2c
Yang Xiwen via B4 Relay
devnull+forbidden405.outlook.com at kernel.org
Sat Jun 21 12:54:20 CEST 2025
From: Yang Xiwen <forbidden405 at outlook.com>
Reverse the clk_register() order of i2c_root and i2c to test the feature
that allows register clocks in a less strict order.
Signed-off-by: Yang Xiwen <forbidden405 at outlook.com>
---
drivers/clk/clk_sandbox_ccf.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/clk/clk_sandbox_ccf.c b/drivers/clk/clk_sandbox_ccf.c
index f96a15c30b3a..ed4f69807644 100644
--- a/drivers/clk/clk_sandbox_ccf.c
+++ b/drivers/clk/clk_sandbox_ccf.c
@@ -269,14 +269,14 @@ static int sandbox_clk_ccf_probe(struct udevice *dev)
sandbox_clk_mux("usdhc2_sel", ®, 17, 1, usdhc_sels,
ARRAY_SIZE(usdhc_sels)));
+ clk_dm(SANDBOX_CLK_I2C_ROOT,
+ sandbox_clk_gate2("i2c_root", "i2c", base + 0x7c, 0));
+
reg = BIT(28) | BIT(24) | BIT(16);
clk_dm(SANDBOX_CLK_I2C,
sandbox_clk_composite("i2c", i2c_sels, ARRAY_SIZE(i2c_sels),
®, CLK_SET_RATE_UNGATE));
- clk_dm(SANDBOX_CLK_I2C_ROOT,
- sandbox_clk_gate2("i2c_root", "i2c", base + 0x7c, 0));
-
return 0;
}
--
2.43.0
More information about the U-Boot
mailing list