Re: Using MMC on HoneyComb LX2 (patch)

[email protected] (Michael van Elst)
Newsgroups gmane.os.netbsd.ports.arm
Organization Serpens User Group
Message-ID <[email protected]>
[email protected] (David Young) writes:

>installed?  I guess that on such a board the ACPI node for MMC may be
>absent.  If it is present, then initialization will fail.  Either way,
>the MMC will not attach.

For a rk3588s based system, the eMMC wouldn't attach until I added
a short delay (which probably doesn't belong here):

@@ -2351,8 +2364,10 @@ sdhc_wait_intr(struct sdhc_host *hp, int
 
        if (nointr ||
            (ISSET(status, SDHC_ERROR_INTERRUPT) && error)) {
-               if (!ISSET(hp->sc->sc_flags, SDHC_FLAG_ENHANCED))
+               if (!ISSET(hp->sc->sc_flags, SDHC_FLAG_ENHANCED)) {
+                       sdmmc_delay(100);
                        (void)sdhc_soft_reset(hp, SDHC_RESET_CMD|SDHC_RESET_DAT);
+               }
                hp->intr_error_status = 0;
                status = 0;
        }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.