This diff makes sdmmc(4) print ddr52 and hs200 capabilities, making it
possible to see whether a controller supports these high-speed eMMC
modes.

ok?


Index: dev/sdmmc/sdmmc.c
===================================================================
RCS file: /cvs/src/sys/dev/sdmmc/sdmmc.c,v
retrieving revision 1.56
diff -u -p -r1.56 sdmmc.c
--- dev/sdmmc/sdmmc.c   24 Jul 2020 12:43:32 -0000      1.56
+++ dev/sdmmc/sdmmc.c   15 Aug 2020 12:53:32 -0000
@@ -113,6 +113,10 @@ sdmmc_attach(struct device *parent, stru
                printf(", sd high-speed");
        if (ISSET(saa->caps, SMC_CAPS_MMC_HIGHSPEED))
                printf(", mmc high-speed");
+       if (ISSET(saa->caps, SMC_CAPS_MMC_DDR52))
+               printf(", ddr52");
+       if (ISSET(saa->caps, SMC_CAPS_MMC_HS200))
+               printf(", hs200");
        if (ISSET(saa->caps, SMC_CAPS_DMA))
                printf(", dma");
        printf("\n");

Reply via email to