git: 6925f2caedca - main - clk: rockchip: rk3568: Select the eMMC core clock by rate
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 05 Nov 2026 14:51:11 UTC
The branch main has been updated by manu:
URL: https://cgit.FreeBSD.org/src/commit/?id=6925f2caedca8b0f62d15235f8b1fcc3ed11631e
commit 6925f2caedca8b0f62d15235f8b1fcc3ed11631e
Author: Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2026-10-20 11:04:16 +0000
Commit: Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2026-11-05 14:50:36 +0000
clk: rockchip: rk3568: Select the eMMC core clock by rate
The eMMC core clock is a mux without a divider, whose parents provide the
375kHz clock for card identification and the 24MHz to 200MHz clocks for the
other modes. Use RK_CLK_MUX_ROUND_PARENT so that the host driver can change
the card clock, which could not be done before.
Reviewed by: mmel
Differential Revision: https://reviews.freebsd.org/D60892
---
sys/dev/clk/rockchip/rk3568_cru.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sys/dev/clk/rockchip/rk3568_cru.c b/sys/dev/clk/rockchip/rk3568_cru.c
index 7305de309ea6..c3de5e9213c9 100644
--- a/sys/dev/clk/rockchip/rk3568_cru.c
+++ b/sys/dev/clk/rockchip/rk3568_cru.c
@@ -480,7 +480,8 @@ static struct rk_clk rk3568_clks[] = {
/* 7 Reserved */
MUX(0, "bclk_emmc_sel", gpll200_gpll150_cpll125_p, 0, 28, 8, 2),
/* 10:11 Reserved */
- MUX(0, "cclk_emmc_sel", cclk_emmc_p, 0, 28, 12, 3),
+ MUX(0, "cclk_emmc_sel", cclk_emmc_p,
+ RK_CLK_MUX_ROUND_PARENT, 28, 12, 3),
/* 15 Reserved */
/* CRU_CLKSEL_CON29 */