From fb743922bcd4e9030f6f609ce78dbf3f70a00a51 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Fri, 24 Jul 2020 17:46:05 +0800 Subject: [PATCH] spl: mtd_blk: use CONFIG_MTD_BLK_U_BOOT_OFFS as uboot location address Signed-off-by: Jason Zhu Change-Id: I7a8e75095e30541947503481e214462b3d543fd0 --- common/spl/spl_mtd_blk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/spl/spl_mtd_blk.c b/common/spl/spl_mtd_blk.c index 0d34836822..6947d1d6bb 100644 --- a/common/spl/spl_mtd_blk.c +++ b/common/spl/spl_mtd_blk.c @@ -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); } }