Page MenuHomeFreeBSD

D60893.1794708143.diff
No OneTemporary

Authored By
Unknown
Size
664 B
Referenced Files
None
Subscribers
None

D60893.1794708143.diff

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

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)

Event Timeline