]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: nand: mxs_nand_spl: Add nand_spl_adjust_offset
authorYe Li <ye.li@nxp.com>
Tue, 17 Aug 2021 09:24:47 +0000 (17:24 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 7 Oct 2021 14:53:50 +0000 (16:53 +0200)
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>
drivers/mtd/nand/raw/mxs_nand_spl.c

index 6b70d68fe7ba5a0e2f8cf1cd1c99ea6ec325593e..9e0b8afb522f09f1c1abc39cf5470642e9aadd02 100644 (file)
@@ -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;
+}