Skip to content

Commit 06b650d

Browse files
committed
mmc: sdhci-tegra: Separate Tegra194 and Tegra234 SoC data
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2144641 commit 8f00ad0 Author: Prathamesh Shete <pshete@nvidia.com> Date: Tue, 6 Dec 2022 17:59:43 +0100 Create new SoC data structure for Tegra234 platforms. Additional features, tap value configurations are added/updated for Tegra234 platform hence separate Tegra194 and Tegra234 SoC data. Signed-off-by: Aniruddha Tvs Rao <anrao@nvidia.com> Signed-off-by: Prathamesh Shete <pshete@nvidia.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Acked-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://lore.kernel.org/r/20221206165945.3551774-5-thierry.reding@gmail.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Mark Salter <msalter@redhat.com>
1 parent e28e709 commit 06b650d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

drivers/mmc/host/sdhci-tegra.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,21 @@ static const struct sdhci_tegra_soc_data soc_data_tegra194 = {
15571557
.max_tap_delay = 139,
15581558
};
15591559

1560+
static const struct sdhci_tegra_soc_data soc_data_tegra234 = {
1561+
.pdata = &sdhci_tegra186_pdata,
1562+
.dma_mask = DMA_BIT_MASK(39),
1563+
.nvquirks = NVQUIRK_NEEDS_PAD_CONTROL |
1564+
NVQUIRK_HAS_PADCALIB |
1565+
NVQUIRK_DIS_CARD_CLK_CONFIG_TAP |
1566+
NVQUIRK_ENABLE_SDR50 |
1567+
NVQUIRK_ENABLE_SDR104 |
1568+
NVQUIRK_HAS_TMCLK,
1569+
.min_tap_delay = 95,
1570+
.max_tap_delay = 111,
1571+
};
1572+
15601573
static const struct of_device_id sdhci_tegra_dt_match[] = {
1574+
{ .compatible = "nvidia,tegra234-sdhci", .data = &soc_data_tegra234 },
15611575
{ .compatible = "nvidia,tegra194-sdhci", .data = &soc_data_tegra194 },
15621576
{ .compatible = "nvidia,tegra186-sdhci", .data = &soc_data_tegra186 },
15631577
{ .compatible = "nvidia,tegra210-sdhci", .data = &soc_data_tegra210 },

0 commit comments

Comments
 (0)