提交 7267fbf7 编写于 作者: Y York Sun 提交者: Tom Rini

spl: mmc: Skip RAW mode ARGS sectors if not defined

RAW mode ARGS sector doesn't have to be used for all falcon boot. Skip
loading ARGS sectors if not defined.
Signed-off-by: NYork Sun <york.sun@nxp.com>
上级 992c1db4
......@@ -191,9 +191,11 @@ static int mmc_load_image_raw_partition(struct spl_image_info *spl_image,
static int mmc_load_image_raw_os(struct spl_image_info *spl_image,
struct mmc *mmc)
{
unsigned long count;
int ret;
#if defined(CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR)
unsigned long count;
count = blk_dread(mmc_get_blk_desc(mmc),
CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR,
CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS,
......@@ -204,6 +206,7 @@ static int mmc_load_image_raw_os(struct spl_image_info *spl_image,
#endif
return -1;
}
#endif /* CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR */
ret = mmc_load_image_raw_sector(spl_image, mmc,
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册