Skip to content

Commit 4346b7c

Browse files
thierryredingstorulf
authored andcommitted
mmc: tegra: Add Tegra186 support
The SDHCI controller found on NVIDIA Tegra186 SoCs is very similar to the one on prior generations of Tegra and can be supported by the same driver. Acked-by: Adrian Hunter <[email protected]> Signed-off-by: Thierry Reding <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent 20567be commit 4346b7c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

drivers/mmc/host/sdhci-tegra.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,23 @@ static const struct sdhci_tegra_soc_data soc_data_tegra210 = {
434434
.pdata = &sdhci_tegra210_pdata,
435435
};
436436

437+
static const struct sdhci_pltfm_data sdhci_tegra186_pdata = {
438+
.quirks = SDHCI_QUIRK_BROKEN_TIMEOUT_VAL |
439+
SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK |
440+
SDHCI_QUIRK_SINGLE_POWER_WRITE |
441+
SDHCI_QUIRK_NO_HISPD_BIT |
442+
SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC |
443+
SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN,
444+
.quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN,
445+
.ops = &tegra114_sdhci_ops,
446+
};
447+
448+
static const struct sdhci_tegra_soc_data soc_data_tegra186 = {
449+
.pdata = &sdhci_tegra186_pdata,
450+
};
451+
437452
static const struct of_device_id sdhci_tegra_dt_match[] = {
453+
{ .compatible = "nvidia,tegra186-sdhci", .data = &soc_data_tegra186 },
438454
{ .compatible = "nvidia,tegra210-sdhci", .data = &soc_data_tegra210 },
439455
{ .compatible = "nvidia,tegra124-sdhci", .data = &soc_data_tegra124 },
440456
{ .compatible = "nvidia,tegra114-sdhci", .data = &soc_data_tegra114 },

0 commit comments

Comments
 (0)