mmc: am654_sdhci: Fix HIGH_SPEED_ENA
authorJudith Mendez <jm@ti.com>
Thu, 17 Apr 2025 23:43:32 +0000 (18:43 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 24 Apr 2025 16:44:52 +0000 (10:44 -0600)
High Speed enable bit switches data launch from the falling
clock edge (half cycle timing) to the rising clock edge (full
cycle timing). For all SD UHS modes, data launch must happen
at the rising clock edge, so set HIGH_SPEED_ENA for SDR12 and
SDR25 modes. For all HS modes, data launch must happen at the
falling clock edge, so do not set HIGH_SPEED_ENA for MMC_HS_52.

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

index e4fa8a8..28d82af 100644 (file)
@@ -412,8 +412,7 @@ static void am654_sdhci_write_b(struct sdhci_host *host, u8 val, int reg)
                 */
                case SD_HS:
                case MMC_HS:
-               case UHS_SDR12:
-               case UHS_SDR25:
+               case MMC_HS_52:
                        val &= ~SDHCI_CTRL_HISPD;
                default:
                        break;