mmc: tegra: Implementation of new tuning algorithm
authorPavan Kunapuli <pkunapuli@nvidia.com>
Thu, 9 Jan 2014 11:46:13 +0000 (16:46 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Fri, 16 May 2014 22:56:07 +0000 (15:56 -0700)
commit215c82da4fbc816f58d264ac28acb34fe991dcd2
tree9654d524c9f88b4d63497f201d47bbad79d3867c
parent2c17e1e37c204cbc3b1e1720d4328043067c0a01
mmc: tegra: Implementation of new tuning algorithm

Implemented the new tuning algorithm that
- Removes the tap holes from auto tuning windows
- Adjust window ends with margins for Vmin for the corresponding freq
- Dynamically updates dvfs table entry if a new Vmin is found from
auto tuning calculations
- Calculates the best tap value from the windows after removing tap
holes and margin additions.

Disabling external loopback clock for SDMMC3 as per characterization
results.

Bug 1423429

Reviewed-on: http://git-master/r/359375
(cherry picked from commit 8f33c039e2a8551b04d9023702a94c49dd2fffac)

Change-Id: I49b8dca227ae9f40cbbcbc81a36130a693588056
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/363810
(cherry picked from commit e12f878c391eb732369313b53a1a94b5a673a8bc)
Reviewed-on: http://git-master/r/410189
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
include/linux/platform_data/mmc-sdhci-tegra.h