diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2016-11-21 08:11:26 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2016-11-21 15:05:22 +0100 |
commit | fc445d611bcee345d3c06631385b6f2fc039e341 (patch) | |
tree | 188edf84f74c813f52b2c527d3227176ad17c12b | |
parent | 1616cbe65b3d883238d8973b6b25232516d57fd3 (diff) |
sdhci: tegra: add 200 mhz tuning data
As we limit the clock to 200 MHz also add tap hole coefficients to
allow for successful UHC-I tuning on SDMMC1.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
-rw-r--r-- | drivers/mmc/host/sdhci-tegra.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index a37ecb6a8a55..c5ece6947cbf 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -285,7 +285,7 @@ struct tuning_t2t_coeffs t12x_tuning_coeffs[] = { SET_TUNING_COEFFS("sdhci-tegra.3", 1150, 950, 27, 118295, 27, 118295, 48, 188148), SET_TUNING_COEFFS("sdhci-tegra.2", 1150, 950, 29, 124427, - 29, 124427, 54, 203707), + 29, 124427, 54, 203707), SET_TUNING_COEFFS("sdhci-tegra.0", 1150, 950, 25, 115933, 25, 115933, 47, 187224), }; @@ -363,6 +363,8 @@ struct tap_hole_coeffs t12x_tap_hole_coeffs[] = { 281460, 1262, 194452), SET_TAP_HOLE_COEFFS("sdhci-tegra.0", 204000, 874, 85243, 874, 85243, 449, 57321), + SET_TAP_HOLE_COEFFS("sdhci-tegra.0", 200000, 874, 85243, 874, + 85243, 449, 57321), SET_TAP_HOLE_COEFFS("sdhci-tegra.0", 136000, 1554, 167210, 1554, 167210, 793, 115672), SET_TAP_HOLE_COEFFS("sdhci-tegra.0", 100000, 2290, 255734, 2290, @@ -3990,9 +3992,9 @@ static struct sdhci_tegra_soc_data soc_data_tegra12 = { .parent_clk_list = {"pll_p", "pll_c"}, .tuning_freq_list = {81600000, 136000000, 200000000}, .t2t_coeffs = t12x_tuning_coeffs, - .t2t_coeffs_count = 3, + .t2t_coeffs_count = ARRAY_SIZE(t12x_tuning_coeffs), .tap_hole_coeffs = t12x_tap_hole_coeffs, - .tap_hole_coeffs_count = 13, + .tap_hole_coeffs_count = ARRAY_SIZE(t12x_tap_hole_coeffs), }; static const struct of_device_id sdhci_tegra_dt_match[] = { |