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 <[email protected]> --- 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; host->hba = hba; return 0; -- 2.51.2

