diff options
author | Ye Li <ye.li@nxp.com> | 2021-08-17 12:24:47 +0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2021-10-07 17:53:50 +0300 |
commit | f68c897e2deacbf7870f3ba618d8d46efb44c149 (patch) | |
tree | e0942f9aeb8e9a71f294d107ee0eb2564b4b3871 /drivers/mtd | |
parent | ae3f752919fa2eff4fa865e5fb09657452856a84 (diff) | |
download | u-boot-f68c897e2deacbf7870f3ba618d8d46efb44c149.tar.xz |
mtd: nand: mxs_nand_spl: Add nand_spl_adjust_offset
Since the mxs_nand_spl has implemented adjust read offset in
nand_spl_load_image, so we don't need to check the bad block in
nand_spl_adjust_offset. Directly return the offset to continue
read by nand_spl_load_image.
Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/raw/mxs_nand_spl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/mxs_nand_spl.c b/drivers/mtd/nand/raw/mxs_nand_spl.c index 6b70d68fe7..9e0b8afb52 100644 --- a/drivers/mtd/nand/raw/mxs_nand_spl.c +++ b/drivers/mtd/nand/raw/mxs_nand_spl.c @@ -296,3 +296,9 @@ int nand_default_bbt(struct mtd_info *mtd) void nand_deselect(void) { } + +u32 nand_spl_adjust_offset(u32 sector, u32 offs) +{ + /* Handle the offset adjust in nand_spl_load_image,*/ + return offs; +} |