[PATCH v3 3/5] ufs: rockchip: Enable SDRAM-only DMA quirk

Neil Armstrong neil.armstrong at linaro.org
Tue Jan 6 15:08:59 CET 2026


On 1/6/26 14:57, Alexey Charkov wrote:
> Rockchip RK3576 can boot fully from UFS, but as part of the boot
> process the SPL needs to place part of the ATF code into PMU SRAM,
> which is outside the SDRAM range that the UFSHC can access.
> 
> Enable a quirk to force bounce operation for this case.
> 
> Signed-off-by: Alexey Charkov <alchark at gmail.com>
> ---
>   drivers/ufs/Kconfig        | 1 +
>   drivers/ufs/ufs-rockchip.c | 1 +
>   2 files changed, 2 insertions(+)
> 
> diff --git a/drivers/ufs/Kconfig b/drivers/ufs/Kconfig
> index 6c75bb2a0790..2543b5d47c04 100644
> --- a/drivers/ufs/Kconfig
> +++ b/drivers/ufs/Kconfig
> @@ -76,6 +76,7 @@ config UFS_RENESAS_GEN5
>   config UFS_ROCKCHIP
>   	bool "Rockchip specific hooks to UFS controller platform driver"
>   	depends on UFS
> +	select BOUNCE_BUFFER
>   	help
>   	  This selects the Rockchip specific additions to UFSHCD platform driver.
>   
> diff --git a/drivers/ufs/ufs-rockchip.c b/drivers/ufs/ufs-rockchip.c
> index 0384244387da..699460fc4d15 100644
> --- a/drivers/ufs/ufs-rockchip.c
> +++ b/drivers/ufs/ufs-rockchip.c
> @@ -153,6 +153,7 @@ static int ufs_rockchip_common_init(struct ufs_hba *hba)
>   		return err;
>   	}
>   
> +	hba->quirks |= UFSHCD_QUIRK_DMA_SDRAM_ONLY;

So you really want to enable this quirk for non-SPL builds aswell ?

Neil

>   	host->hba = hba;
>   
>   	return 0;
> 



More information about the U-Boot mailing list