diff options
author | Rhyland Klein <rklein@nvidia.com> | 2013-02-20 13:35:17 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-03-06 18:33:48 -0500 |
commit | 5ebf2552493228ec875ea45f6ba8a816cca3744a (patch) | |
tree | 9877c0d6a8a6713df1161cc316b27a12c92380e2 | |
parent | 76f3ae125f3ca777cc831d475d17184641d5bc46 (diff) |
mmc: sdhci-tegra: add basic support for Tegra114
The mmc controller on Tegra114 platforms is basically compatible with
the settings used for Tegra30. However there is a difference where we
don't need the extra ENABLE_SDHCI_SPEC_300 quirk as Tegra114 hardware
advertises v3.0 support already.
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r-- | drivers/mmc/host/sdhci-tegra.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 73009713640e..ff99b632808d 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c | |||
@@ -201,7 +201,21 @@ static struct sdhci_tegra_soc_data soc_data_tegra30 = { | |||
201 | .nvquirks = NVQUIRK_ENABLE_SDHCI_SPEC_300, | 201 | .nvquirks = NVQUIRK_ENABLE_SDHCI_SPEC_300, |
202 | }; | 202 | }; |
203 | 203 | ||
204 | static struct sdhci_pltfm_data sdhci_tegra114_pdata = { | ||
205 | .quirks = SDHCI_QUIRK_BROKEN_TIMEOUT_VAL | | ||
206 | SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK | | ||
207 | SDHCI_QUIRK_SINGLE_POWER_WRITE | | ||
208 | SDHCI_QUIRK_NO_HISPD_BIT | | ||
209 | SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC, | ||
210 | .ops = &tegra_sdhci_ops, | ||
211 | }; | ||
212 | |||
213 | static struct sdhci_tegra_soc_data soc_data_tegra114 = { | ||
214 | .pdata = &sdhci_tegra114_pdata, | ||
215 | }; | ||
216 | |||
204 | static const struct of_device_id sdhci_tegra_dt_match[] = { | 217 | static const struct of_device_id sdhci_tegra_dt_match[] = { |
218 | { .compatible = "nvidia,tegra114-sdhci", .data = &soc_data_tegra114 }, | ||
205 | { .compatible = "nvidia,tegra30-sdhci", .data = &soc_data_tegra30 }, | 219 | { .compatible = "nvidia,tegra30-sdhci", .data = &soc_data_tegra30 }, |
206 | { .compatible = "nvidia,tegra20-sdhci", .data = &soc_data_tegra20 }, | 220 | { .compatible = "nvidia,tegra20-sdhci", .data = &soc_data_tegra20 }, |
207 | {} | 221 | {} |