* Designware MSHC: dw_mmc versus sdhci-of-dwcmshc?
@ 2022-08-27 20:07 Drew Fustini
2022-08-29 14:14 ` Jisheng Zhang
0 siblings, 1 reply; 2+ messages in thread
From: Drew Fustini @ 2022-08-27 20:07 UTC (permalink / raw)
To: Jisheng Zhang, Jaehoon Chung, Ulf Hansson, Philipp Zabel,
Sebastian Reichel, linux-mmc
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Designware MSHC: dw_mmc versus sdhci-of-dwcmshc?
2022-08-27 20:07 Designware MSHC: dw_mmc versus sdhci-of-dwcmshc? Drew Fustini
@ 2022-08-29 14:14 ` Jisheng Zhang
0 siblings, 0 replies; 2+ messages in thread
From: Jisheng Zhang @ 2022-08-29 14:14 UTC (permalink / raw)
To: Drew Fustini
Cc: Jaehoon Chung, Ulf Hansson, Philipp Zabel, Sebastian Reichel,
linux-mmc
On Sat, Aug 27, 2022 at 01:07:16PM -0700, Drew Fustini wrote:
> Hello, I am bringing up Linux on an SoC which has Synopsys "DesignWare
Hi Drew,
> 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.
Generally speaking, dw_mmc isn't sdhci compatible while the
sdhci-of-dwmshc is sdhci compatible. Those two are for two different
controllers.
Regards
>
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-29 14:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-27 20:07 Designware MSHC: dw_mmc versus sdhci-of-dwcmshc? Drew Fustini
2022-08-29 14:14 ` Jisheng Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox