]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: sdhci: Write to HOST_CONTROL2 register for HS400 speed mode
authorFaiz Abbas <faiz_abbas@ti.com>
Mon, 5 Apr 2021 14:44:28 +0000 (20:14 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 27 Jul 2021 05:26:09 +0000 (10:56 +0530)
Enable HS400 speed mode by writing to HOST_CONTROL2 register.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Link: https://lore.kernel.org/r/20210405144428.12159-1-a-govindraju@ti.com
drivers/mmc/sdhci.c

index d9ab6a0a839ef4cb6d782ba97c643201698394e8..eea4701d8af58518eda1fc4354ce84a6261de6c6 100644 (file)
@@ -507,6 +507,9 @@ void sdhci_set_uhs_timing(struct sdhci_host *host)
        case MMC_HS_200:
                reg |= SDHCI_CTRL_UHS_SDR104;
                break;
+       case MMC_HS_400:
+               reg |= SDHCI_CTRL_HS400;
+               break;
        default:
                reg |= SDHCI_CTRL_UHS_SDR12;
        }