Designware MSHC: dw_mmc versus sdhci-of-dwcmshc?
Hello, I am bringing up Linux on an SoC which has Synopsys "DesignWare Cores Mobile Storage Host Controller (Cryptographic)" IP configured to support an eMMC 5.0 device (IS21ES08G) on the bring-up board. I am trying to figure out why there are two seemingly similar drivers, dw_mmc and sdhci-of-dwmshc, in drivers/mmc/host for Synopsys DesignWare host controller IP. I am hoping someone might be able to give me some insight into the history of these drivers.
I have found the following:
- dw_mmc.c is a "DW Multimedia Card Interface driver"
- created back in 2011 with f95f3850f7a9 ("mmc: dw_mmc: Add Synopsys DesignWare mmc host driver.")
- CONFIG_MMC_DW refers to it as "Synopsys DesignWare Memory Card Interface" with description of "Synopsys DesignWare Mobile Storage IP block, this provides host support for SD and MMC interfaces, in both PIO, internal DMA mode and external DMA mode"
- "snps,dw-mshc" compatible supported in dw_mmc-pltfm.c and synopsys-dw-mshc.yaml binding refers to it as "Synopsys Designware Mobile Storage Host Controller"
- sdhci-of-dwcmshc.c is a "SDHCI platform driver for Synopsys DWC MSHC"
- created more recently in 2018 with e438cf49b305 ("mmc:
sdhci-of-dwcmshc: add SDHCI OF Synopsys DWC MSHC driver")
- CONFIG_MMC_SDHCI_OF_DWCMSHC refers to it as "SDHCI OF support for the Synopsys DWC MSHC" with description of "Synopsys DesignWare Cores Mobile Storage Controller support."
- the driver supports "snps,dwcmshc-sdhci" compatible and the snps,dwcmshc-sdhci.yaml binding describes it as "Synopsys Designware Mobile Storage Host Controller"
I would greatly appreciate any advice anyone may have on which driver might be the best fit.
Thank you,
Drew
Quoted 1 line · Drew Fustini
Hello, I am bringing up Linux on an SoC which has Synopsys "DesignWare
Hi Drew,
Quoted 6 lines
Cores Mobile Storage Host Controller (Cryptographic)" IP configured to support an eMMC 5.0 device (IS21ES08G) on the bring-up board. I am trying to figure out why there are two seemingly similar drivers,
dw_mmcand sdhci-of-dwmshc, indrivers/mmc/hostfor Synopsys DesignWare host controller IP. I am hoping someone might be able to give me some insight into the history of these drivers.
Generally speaking, dw_mmc isn't sdhci compatible while the sdhci-of-dwmshc is sdhci compatible. Those two are for two different controllers.
Regards
Quoted 29 lines
I have found the following:
-
dw_mmc.cis a "DW Multimedia Card Interface driver"
- created back in 2011 withf95f3850f7a9("mmc:dw_mmc: Add Synopsys DesignWare mmc host driver.")
-CONFIG_MMC_DWrefers to it as "Synopsys DesignWare Memory Card Interface" with description of "Synopsys DesignWare Mobile Storage IP block, this provides host support for SD and MMC interfaces, in both PIO, internal DMA mode and external DMA mode"
- "snps,dw-mshc" compatible supported indw_mmc-pltfm.candsynopsys-dw-mshc.yamlbinding refers to it as "Synopsys Designware Mobile Storage Host Controller"-
sdhci-of-dwcmshc.cis a "SDHCI platform driver for Synopsys DWC MSHC"
- created more recently in 2018 withe438cf49b305("mmc:
sdhci-of-dwcmshc: add SDHCI OF Synopsys DWC MSHC driver")
-CONFIG_MMC_SDHCI_OF_DWCMSHCrefers to it as "SDHCI OF support for the Synopsys DWC MSHC" with description of "Synopsys DesignWare Cores Mobile Storage Controller support."
- the driver supports "snps,dwcmshc-sdhci" compatible and the snps,dwcmshc-sdhci.yaml binding describes it as "Synopsys Designware Mobile Storage Host Controller"I would greatly appreciate any advice anyone may have on which driver might be the best fit.
Thank you,
Drew