]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mmc: sdhci-cadence: add Mobileye eyeQ support
authorBenoît Monin <benoit.monin@bootlin.com>
Tue, 17 Jun 2025 13:25:52 +0000 (15:25 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Jun 2025 10:43:26 +0000 (12:43 +0200)
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>
drivers/mmc/host/sdhci-cadence.c

index a37e6a1f51279034f5df60c16df6c8a4bf9554c2..e443beed166f2ef7679c2d53aa3a955f4bcc494d 100644 (file)
@@ -433,6 +433,13 @@ static const struct sdhci_cdns_drv_data sdhci_elba_drv_data = {
        },
 };
 
+static const struct sdhci_cdns_drv_data sdhci_eyeq_drv_data = {
+       .pltfm_data = {
+               .ops = &sdhci_cdns_ops,
+               .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN,
+       },
+};
+
 static const struct sdhci_cdns_drv_data sdhci_cdns_drv_data = {
        .pltfm_data = {
                .ops = &sdhci_cdns_ops,
@@ -586,6 +593,10 @@ static const struct of_device_id sdhci_cdns_match[] = {
                .compatible = "amd,pensando-elba-sd4hc",
                .data = &sdhci_elba_drv_data,
        },
+       {
+               .compatible = "mobileye,eyeq-sd4hc",
+               .data = &sdhci_eyeq_drv_data,
+       },
        { .compatible = "cdns,sd4hc" },
        { /* sentinel */ }
 };