Commit 120ffe25 authored by Benoît Monin's avatar Benoît Monin Committed by Ulf Hansson
Browse files

mmc: sdhci-cadence: add Mobileye eyeQ support



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: default avatarBenoît Monin <benoit.monin@bootlin.com>
Link: https://lore.kernel.org/r/e97f409650495791e07484589e1666ead570fa12.1750156323.git.benoit.monin@bootlin.com


Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 0ae21056
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -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 */ }
};