mmc: tegra: Add SDR50 tuning support
R Raj Kumar [Wed, 29 Jan 2014 05:18:05 +0000 (10:18 +0530)]
Added tuning tap hole equations to support SDR50 mode
for SD and SDIO device.

Bug 1447641

Change-Id: I09425098c0991553df87231ea9fdccf5bae683d3
Reviewed-on: http://git-master/r/361310
(cherry picked from commit 622918573fa3e3914ed9e633d467a0433a4a8ff2)

Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Change-Id: I3a0d1178b3c085057a16a981294085b667a5e3dc
Reviewed-on: http://git-master/r/365738
(cherry picked from commit 6cb8308deb102d300241136a001cc8b6f3ce1f81)
Reviewed-on: http://git-master/r/410194
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

drivers/mmc/host/sdhci-tegra.c

index cc481fc..ec86daf 100644 (file)
@@ -343,18 +343,24 @@ struct tap_hole_coeffs t12x_tap_hole_coeffs[] = {
                106934, 558,    74315),
        SET_TAP_HOLE_COEFFS("sdhci-tegra.3",    136000, 1703,   186307, 1703,
                186307, 890,    130617),
+       SET_TAP_HOLE_COEFFS("sdhci-tegra.3",    100000, 2452,   275601, 2452,
+               275601, 1264,   193957),
        SET_TAP_HOLE_COEFFS("sdhci-tegra.3",    81600,  3090,   351666, 3090,
                351666, 1583,   247913),
        SET_TAP_HOLE_COEFFS("sdhci-tegra.2",    204000, 468,    36031,  468,
                36031,  253,    21264),
        SET_TAP_HOLE_COEFFS("sdhci-tegra.2",    136000, 1146,   117841, 1146,
                117841, 589,    78993),
+       SET_TAP_HOLE_COEFFS("sdhci-tegra.2",    100000, 1879,   206195, 1879,
+               206195, 953,    141341),
        SET_TAP_HOLE_COEFFS("sdhci-tegra.2",    81600,  2504,   281460, 2504,
                281460, 1262,   194452),
        SET_TAP_HOLE_COEFFS("sdhci-tegra.0",    204000, 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,
+               255734, 1164,   178691),
        SET_TAP_HOLE_COEFFS("sdhci-tegra.0",    81600,  2916,   331143, 2916,
                331143, 1480,   232373),
 };
@@ -3495,7 +3501,7 @@ static struct sdhci_tegra_soc_data soc_data_tegra12 = {
        .t2t_coeffs = t12x_tuning_coeffs,
        .t2t_coeffs_count = 3,
        .tap_hole_coeffs = t12x_tap_hole_coeffs,
-       .tap_hole_coeffs_count = 9,
+       .tap_hole_coeffs_count = 12,
 };
 
 static const struct of_device_id sdhci_tegra_dt_match[] = {