spl: fit: all rockchip based soc use dram as sram bounce buffer for

block device

The Storage controller(MMC/NANDC/SFC) on Rockchip based soc can't
access the sram directly, we need use dram memory as a bounce buffer.

Change-Id: Ibe2a10d7b73cb19b093ee372602ade097b689b82
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
This commit is contained in:
Andy Yan 2019-04-24 14:06:51 +08:00 committed by Jianhong Chen
parent 912343c03a
commit 63363c40ff
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ static int spl_load_fit_image(struct spl_load_info *info, ulong sector,
return -ENOENT;
load_ptr = (load_addr + align_len) & ~align_len;
#if defined(CONFIG_ROCKCHIP_RK3399) || defined(CONFIG_ROCKCHIP_RK3368)
#if defined(CONFIG_ARCH_ROCKCHIP)
if ((load_ptr & 0xffff0000) == CONFIG_ROCKCHIP_IRAM_START_ADDR)
load_ptr = (ulong)memalign(ARCH_DMA_MINALIGN, len);
#endif