spl: mtd_blk: use CONFIG_MTD_BLK_U_BOOT_OFFS as uboot location address

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I7a8e75095e30541947503481e214462b3d543fd0
This commit is contained in:
Jason Zhu 2020-07-24 17:46:05 +08:00 committed by Jianhong Chen
parent 3b1ddd14f7
commit fb743922bc
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ int spl_mtd_load_image(struct spl_image_info *spl_image,
if (IS_ENABLED(CONFIG_SPL_LOAD_FIT)) {
header = (struct image_header *)(CONFIG_SYS_TEXT_BASE -
sizeof(struct image_header));
ret = blk_dread(desc, CONFIG_SYS_NAND_U_BOOT_OFFS, 1, header);
ret = blk_dread(desc, CONFIG_MTD_BLK_U_BOOT_OFFS, 1, header);
if (ret != 1)
return -ENODEV;
@ -134,7 +134,7 @@ int spl_mtd_load_image(struct spl_image_info *spl_image,
load.read = mtd_spl_load_read;
ret = spl_load_simple_fit(spl_image, &load,
CONFIG_SYS_NAND_U_BOOT_OFFS,
CONFIG_MTD_BLK_U_BOOT_OFFS,
header);
}
}