[PATCH 4/6] mci: sdhci: rockchip: Update pre-change delay for rockchip platform
Ahmad Fatoum
a.fatoum at pengutronix.de
Thu May 7 01:12:44 PDT 2026
On 5/7/26 9:02 AM, Sascha Hauer wrote:
> This is an adoption from Linux commit b75a52b0dda35 ("mmc: sdhci-of-dwcmshc:
> Update DLL and pre-change delay for rockchip platform"). We already have
> most of it, this only adds the pre-change delay part.
>
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
Reviewed-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
> drivers/mci/rockchip-dwcmshc-sdhci.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mci/rockchip-dwcmshc-sdhci.c b/drivers/mci/rockchip-dwcmshc-sdhci.c
> index 2605a1368f..9ffd52e7e0 100644
> --- a/drivers/mci/rockchip-dwcmshc-sdhci.c
> +++ b/drivers/mci/rockchip-dwcmshc-sdhci.c
> @@ -206,7 +206,7 @@ static void rk_sdhci_set_clock(struct rk_sdhci_host *host, unsigned int clock)
> }
>
> extra = 0x1 << 16 | /* tune clock stop en */
> - 0x2 << 17 | /* pre-change delay */
> + 0x3 << 17 | /* pre-change delay */
> 0x3 << 19; /* post-change delay */
> sdhci_write32(&host->sdhci, DWCMSHC_EMMC_ATCTRL, extra);
>
>
--
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