Skip to content

Commit aaac704

Browse files
benoitmoningregkh
authored andcommitted
mmc: sdhci-cadence: add Mobileye eyeQ support
[ Upstream commit 120ffe2 ] The MMC/SDHCI controller implemented by Mobileye needs the preset value quirks to configure the clock properly at speed slower than HS200. It otherwise works as a standard sd4hc controller. Signed-off-by: Benoît Monin <benoit.monin@bootlin.com> Link: https://lore.kernel.org/r/e97f409650495791e07484589e1666ead570fa12.1750156323.git.benoit.monin@bootlin.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 34a8909 commit aaac704

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/mmc/host/sdhci-cadence.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,13 @@ static const struct sdhci_cdns_drv_data sdhci_elba_drv_data = {
433433
},
434434
};
435435

436+
static const struct sdhci_cdns_drv_data sdhci_eyeq_drv_data = {
437+
.pltfm_data = {
438+
.ops = &sdhci_cdns_ops,
439+
.quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN,
440+
},
441+
};
442+
436443
static const struct sdhci_cdns_drv_data sdhci_cdns_drv_data = {
437444
.pltfm_data = {
438445
.ops = &sdhci_cdns_ops,
@@ -595,6 +602,10 @@ static const struct of_device_id sdhci_cdns_match[] = {
595602
.compatible = "amd,pensando-elba-sd4hc",
596603
.data = &sdhci_elba_drv_data,
597604
},
605+
{
606+
.compatible = "mobileye,eyeq-sd4hc",
607+
.data = &sdhci_eyeq_drv_data,
608+
},
598609
{ .compatible = "cdns,sd4hc" },
599610
{ /* sentinel */ }
600611
};

0 commit comments

Comments
 (0)