]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: am654_sdhci: Add support for software tuning
authorFaiz Abbas <faiz_abbas@ti.com>
Thu, 4 Feb 2021 09:40:53 +0000 (15:10 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Thu, 4 Feb 2021 15:07:57 +0000 (20:37 +0530)
commit9649065df4e7f32ab7e0f76a1fea5a7c30d12a30
treeb07ce8bb9bab8f6cccb0e0732321b3c15b7ad29b
parent258284a378762eeb0cc0c0aecbdb9560f832d383
mmc: am654_sdhci: Add support for software tuning

With the new SW tuning App note[1], a custom tuning algorithm is
required for eMMC HS200, HS400 and SD card UHS modes. The algorithm
involves running through the 32 possible input tap delay values and
sending the appropriate tuning command (CMD19/21) for each of them
to get a fail or pass result for each of the values. Typically, the
range will have a small contiguous failing window. Considering the
tuning range as a circular buffer, the algorithm then sets a final
tuned value directly opposite to the failing window.

[1] https://www.ti.com/lit/pdf/spract9

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/am654_sdhci.c