[PATCH v3 1/7] mci: sdhci: Set 8-bit host caps

Sascha Hauer sha at pengutronix.de
Sun Aug 20 22:59:53 PDT 2023


On Fri, Aug 18, 2023 at 04:22:38PM +0200, Jules Maselbas wrote:
> Set the mci::host_cap MMC_CAP_8_BIT_DATA if supported by the hardware.
> 
> Signed-off-by: Jules Maselbas <jmaselbas at kalray.eu>
> ---
>  drivers/mci/sdhci.c | 3 +++
>  1 file changed, 3 insertions(+)

Applied, thanks

Sascha

> 
> diff --git a/drivers/mci/sdhci.c b/drivers/mci/sdhci.c
> index 635884e2a2..f6deea4020 100644
> --- a/drivers/mci/sdhci.c
> +++ b/drivers/mci/sdhci.c
> @@ -568,6 +568,9 @@ int sdhci_setup_host(struct sdhci *host)
>  	if (host->caps & SDHCI_CAN_DO_HISPD)
>  		mci->host_caps |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED;
>  
> +	if (host->caps & SDHCI_CAN_DO_8BIT)
> +		mci->host_caps |= MMC_CAP_8_BIT_DATA;
> +
>  	host->sdma_boundary = SDHCI_DMA_BOUNDARY_512K;
>  
>  	return 0;
> -- 
> 2.41.0
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list