[PATCH] mmc: sdhci: Write to HOST_CONTROL2 register for HS400 speed mode

Jaehoon Chung jh80.chung at samsung.com
Wed Apr 7 00:22:35 CEST 2021


On 4/5/21 11:44 PM, Aswath Govindraju wrote:
> From: Faiz Abbas <faiz_abbas at ti.com>
> 
> Enable HS400 speed mode by writing to HOST_CONTROL2 register.
> 
> Signed-off-by: Faiz Abbas <faiz_abbas at ti.com>
> Signed-off-by: Aswath Govindraju <a-govindraju at ti.com>

Reviewed-by: Jaehoon Chung <jh80.chung at samsung.com>

Best Regards,
Jaehoon Chung

> ---
>  drivers/mmc/sdhci.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
> index d9ab6a0a839e..eea4701d8af5 100644
> --- a/drivers/mmc/sdhci.c
> +++ b/drivers/mmc/sdhci.c
> @@ -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;
>  	}
> 



More information about the U-Boot mailing list