spl: mmc: always load U-Boot partition

On the view of spl_xxx.c, it only cares about loading
U-Boot by spl_load_simple_fit().

Other partitions is better to be loaded in the
spl_load_simple_fit().

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I15625f7ebdb3aaee5491fddabf544951723b00a9
This commit is contained in:
Joseph Chen 2020-06-22 16:12:34 +08:00 committed by Jianhong Chen
parent a2b9279dbb
commit 8b16d676d3
1 changed files with 1 additions and 8 deletions

View File

@ -352,15 +352,8 @@ int spl_mmc_load_image(struct spl_image_info *spl_image,
return err;
}
#ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
const char *partition_name;
if (spl_image->next_stage == SPL_NEXT_STAGE_KERNEL)
partition_name = PART_BOOT;
else
partition_name = PART_UBOOT;
err = mmc_load_image_raw_partition(spl_image, mmc,
partition_name,
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_NAME,
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION);
if (!err)
return err;