mmc: am654_sdhci: Add am654_sdhci_set_control_reg
authorJudith Mendez <jm@ti.com>
Thu, 17 Apr 2025 23:43:33 +0000 (18:43 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 24 Apr 2025 16:44:52 +0000 (10:44 -0600)
commit6067aa66b3bb44e35742e60fda49eb3fe664ac23
tree3389ff64021e5b7941dca1d95e45c28a7105b426
parent02c6913a97934c3b68629739b9c6273539e37a96
mmc: am654_sdhci: Add am654_sdhci_set_control_reg

This patch adds am654_sdhci_set_control_reg to am654_sdhci.

This is required to fix UHS_MODE_SELECT for TI K3 boards.

If any of HIGH_SPEED_ENA, V1P8_SIGNAL_ENA, UHS_MODE_SELECT
are set, then data will be launched on the pos-edge of the
clock.

Since K3 SoCs did not meet timing requirements for High Speed
SDR mode at rising clock edge, none of these three should be
set, therefore limit UHS_MODE_SELECT to only be set for modes
above MMC_HS_52.

This fixes MMC write issue on am64x evm at mode High Speed
SDR.

Signed-off-by: Judith Mendez <jm@ti.com>
Reviewed-by: Bryan Brattlof <bb@ti.com>
drivers/mmc/am654_sdhci.c
drivers/mmc/sdhci.c
include/sdhci.h