Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177555097
D60893.1794708143.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
664 B
Referenced Files
None
Subscribers
None
D60893.1794708143.diff
View Options
diff --git a/sys/dev/sdhci/sdhci_fdt_rockchip.c b/sys/dev/sdhci/sdhci_fdt_rockchip.c
--- a/sys/dev/sdhci/sdhci_fdt_rockchip.c
+++ b/sys/dev/sdhci/sdhci_fdt_rockchip.c
@@ -177,7 +177,16 @@
clock = 375000;
if (clock) {
- clk_set_freq(sc->clk_core, clock, 0);
+ /*
+ * The divider of the controller is not functional, the
+ * card clock is the rate of the core clock.
+ */
+ i = clk_set_freq(sc->clk_core, clock,
+ CLK_SET_ROUND_DOWN);
+ if (i != 0 && bootverbose)
+ device_printf(dev,
+ "cannot set the core clock to %d Hz: %d\n",
+ clock, i);
if (clock <= 52000000) {
bus_write_4(sc->mem_res[slot->num],
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 2:02 AM (21 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41164670
Default Alt Text
D60893.1794708143.diff (664 B)
Attached To
Mode
D60893: sdhci: rockchip: rk3568: Fix the eMMC card clock
Attached
Detach File
Event Timeline