[PATCH v2 02/17] mmc: sdhci: Set UHS Mode Select field for UHS SDR25 mode
Kever Yang
kever.yang at rock-chips.com
Thu Apr 20 11:55:18 CEST 2023
On 2023/4/19 00:46, Jonas Karlman wrote:
> 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 at kwiboo.se>
Reviewed-by: Kever Yang <kever.yang at rock-chips.com>
Thanks,
- Kever
> ---
> v2:
> - No change
>
> drivers/mmc/sdhci.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
> index 1389c18533fe..86f81f5dfaf3 100644
> --- a/drivers/mmc/sdhci.c
> +++ b/drivers/mmc/sdhci.c
> @@ -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;
More information about the U-Boot
mailing list