]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: sdhci: Set UHS Mode Select field for UHS SDR25 mode
authorJonas Karlman <jonas@kwiboo.se>
Tue, 18 Apr 2023 16:46:24 +0000 (16:46 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 21 Apr 2023 07:16:01 +0000 (15:16 +0800)
Set correct UHS Mode Select field value for UHS SDR25 (50MHz) mode.

Fixes: d1c0a2200afb ("mmc: sdhci: Add support for HOST_CONTROL2 and setting UHS timings")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/mmc/sdhci.c

index 1389c18533feac10aadd1f8289792b7ccd842fed..86f81f5dfaf3547068ecd9b1bf2bfe1d073e9f7e 100644 (file)
@@ -518,6 +518,10 @@ void sdhci_set_uhs_timing(struct sdhci_host *host)
        reg &= ~SDHCI_CTRL_UHS_MASK;
 
        switch (mmc->selected_mode) {
+       case UHS_SDR25:
+       case MMC_HS:
+               reg |= SDHCI_CTRL_UHS_SDR25;
+               break;
        case UHS_SDR50:
        case MMC_HS_52:
                reg |= SDHCI_CTRL_UHS_SDR50;