Skip to content

Commit 80dd879

Browse files
P33Mpelwell
authored andcommitted
drivers: mmc: sdhci-of-dwcmshc: add RP1 dt ID and quirks
Differentiate the RP1 variant of the Designware MSHC controller(s). Signed-off-by: Jonathan Bell <[email protected]>
1 parent ebe13d0 commit 80dd879

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

drivers/mmc/host/sdhci-of-dwcmshc.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,15 @@ static const struct sdhci_pltfm_data sdhci_dwcmshc_bf3_pdata = {
373373
};
374374
#endif
375375

376+
static const struct sdhci_pltfm_data sdhci_dwcmshc_rp1_pdata = {
377+
.ops = &sdhci_dwcmshc_ops,
378+
.quirks = SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN |
379+
SDHCI_QUIRK_BROKEN_CARD_DETECTION,
380+
.quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN |
381+
SDHCI_QUIRK2_BROKEN_HS200 |
382+
SDHCI_QUIRK2_SPURIOUS_INT_RESP,
383+
};
384+
376385
static const struct sdhci_pltfm_data sdhci_dwcmshc_rk35xx_pdata = {
377386
.ops = &sdhci_dwcmshc_rk35xx_ops,
378387
.quirks = SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN |
@@ -440,6 +449,10 @@ static void dwcmshc_rk35xx_postinit(struct sdhci_host *host, struct dwcmshc_priv
440449
}
441450

442451
static const struct of_device_id sdhci_dwcmshc_dt_ids[] = {
452+
{
453+
.compatible = "raspberrypi,rp1-dwcmshc",
454+
.data = &sdhci_dwcmshc_rp1_pdata,
455+
},
443456
{
444457
.compatible = "rockchip,rk3588-dwcmshc",
445458
.data = &sdhci_dwcmshc_rk35xx_pdata,

0 commit comments

Comments
 (0)