spl_fit: update available case for mmc dma
mmc dma can only access dram area, use DRAM base and max size to make it work for all socs. Change-Id: I7badfc11ccf4072d3c37b147485ca4708c6be906 Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
parent
8cf6fca4b8
commit
a5e7a2d487
|
|
@ -198,7 +198,8 @@ static int spl_load_fit_image(struct spl_load_info *info, ulong sector,
|
|||
|
||||
load_ptr = (load_addr + align_len) & ~align_len;
|
||||
#if defined(CONFIG_ARCH_ROCKCHIP)
|
||||
if ((load_ptr & 0xffff0000) == CONFIG_ROCKCHIP_IRAM_START_ADDR)
|
||||
if ((load_ptr < CONFIG_SYS_SDRAM_BASE) ||
|
||||
(load_ptr >= CONFIG_SYS_SDRAM_BASE + SDRAM_MAX_SIZE))
|
||||
load_ptr = (ulong)memalign(ARCH_DMA_MINALIGN, len);
|
||||
#endif
|
||||
length = len;
|
||||
|
|
|
|||
Loading…
Reference in New Issue