]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: sdhci_am654: Add OTAP/ITAP delay enable
authorJudith Mendez <jm@ti.com>
Wed, 20 Mar 2024 22:38:33 +0000 (17:38 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:42 +0000 (13:39 +0200)
commit81360e7fdc3c9a8f00ce89c6aea82dca4a2962cb
tree84a61fac449b8b78d928ec50fa259bd7951c272f
parent21deb1a72279d0d4b338d83defa4e23e76bbe9fd
mmc: sdhci_am654: Add OTAP/ITAP delay enable

[ Upstream commit 387c1bf7dce0dfea02080c8bdb066b5209e92155 ]

Currently the OTAP/ITAP delay enable functionality is incorrect in
the am654_set_clock function. The OTAP delay is not enabled when
timing < SDR25 bus speed mode. The ITAP delay is not enabled for
timings that do not carry out tuning.

Add this OTAP/ITAP delay functionality according to the datasheet
[1] OTAPDLYENA and ITAPDLYENA for MMC0.

[1] https://www.ti.com/lit/ds/symlink/am62p.pdf

Fixes: 8ee5fc0e0b3b ("mmc: sdhci_am654: Update OTAPDLY writes")
Signed-off-by: Judith Mendez <jm@ti.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20240320223837.959900-4-jm@ti.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/sdhci_am654.c