Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108594392
D33981.id101737.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D33981.id101737.diff
View Options
Index: sys/dev/sdhci/sdhci_fsl_fdt.c
===================================================================
--- sys/dev/sdhci/sdhci_fsl_fdt.c
+++ sys/dev/sdhci/sdhci_fsl_fdt.c
@@ -885,16 +885,6 @@
sc->slot.max_clk = sc->maxclk_hz;
sc->gpio = sdhci_fdt_gpio_setup(dev, &sc->slot);
- /*
- * Pulse width detection is not reliable on some boards. Perform
- * workaround by clearing register's bit according to errata.
- */
- if (sc->soc_data->errata & SDHCI_FSL_UNRELIABLE_PULSE_DET) {
- val = RD4(sc, SDHCI_FSL_DLLCFG1);
- val &= ~SDHCI_FSL_DLLCFG1_PULSE_STRETCH;
- WR4(sc, SDHCI_FSL_DLLCFG1, val);
- }
-
/*
* Set the buffer watermark level to 128 words (512 bytes) for both
* read and write. The hardware has a restriction that when the read or
@@ -1028,6 +1018,16 @@
WR4(sc, SDHCI_FSL_TBCTL, val);
}
+ /*
+ * Pulse width detection is not reliable on some boards. Perform
+ * workaround by clearing register's bit according to errata.
+ */
+ if (sc->soc_data->errata & SDHCI_FSL_UNRELIABLE_PULSE_DET) {
+ val = RD4(sc, SDHCI_FSL_DLLCFG1);
+ val &= ~SDHCI_FSL_DLLCFG1_PULSE_STRETCH;
+ WR4(sc, SDHCI_FSL_DLLCFG1, val);
+ }
+
sc->flags &= ~SDHCI_FSL_HS400_DONE;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 6:18 PM (6 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16203711
Default Alt Text
D33981.id101737.diff (1 KB)
Attached To
Mode
D33981: sdhci_fsl_fdt: Fix pulse width errata application
Attached
Detach File
Event Timeline
Log In to Comment