]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: am654_sdhci: Add tuning algorithm for delay chain
authorJudith Mendez <jm@ti.com>
Thu, 18 Apr 2024 19:00:56 +0000 (14:00 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 29 Apr 2024 16:55:27 +0000 (10:55 -0600)
commit6b8dd9ca6e06bc9ebd3d55cbbe094d4947e197bf
tree13f847234ab35d7912786be3cbec6fabfbb49d5a
parent3434b88d2c2fdad3cc947f9e9b03dabfdd3feb5c
mmc: am654_sdhci: Add tuning algorithm for delay chain

Currently the sdhci_am654 driver only supports one tuning
algorithm which should be used only when DLL is enabled. The
ITAPDLY is selected from the largest passing window and the
buffer is viewed as a circular buffer.

The new tuning algorithm should be used when the delay chain
is enabled; the ITAPDLY is selected from the largest passing
window and the buffer is not viewed as a circular buffer.

This implementation is based off of the following paper: [1].

Also add support for multiple failing windows.

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

Fixes: a759abf569d4 ("mmc: am654_sdhci: Add support for software tuning")
Signed-off-by: Judith Mendez <jm@ti.com>
drivers/mmc/am654_sdhci.c