From 7d4541cdfbf9697c39e720690f13b9c02d3c7555 Mon Sep 17 00:00:00 2001 From: Haolin Li Date: Sun, 18 Jul 2021 10:13:39 +0800 Subject: mtd: nand: Fix typo in MXC Kconfig symbol description Trivial typo fix. Signed-off-by: Haolin Li Reviewed-by: Michal Simek --- drivers/mtd/nand/raw/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/mtd') diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig index 790ee344038..d4da639dd13 100644 --- a/drivers/mtd/nand/raw/Kconfig +++ b/drivers/mtd/nand/raw/Kconfig @@ -369,7 +369,7 @@ config NAND_MXC imply CMD_NAND help This enables the NAND driver for the NAND flash controller on the - i.MX27 / i.MX31 / i.MX5 rocessors. + i.MX27 / i.MX31 / i.MX5 processors. config NAND_MXS bool "MXS NAND support" -- cgit v1.3.1 From f68c897e2deacbf7870f3ba618d8d46efb44c149 Mon Sep 17 00:00:00 2001 From: Ye Li Date: Tue, 17 Aug 2021 17:24:47 +0800 Subject: 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 --- drivers/mtd/nand/raw/mxs_nand_spl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/mtd') diff --git a/drivers/mtd/nand/raw/mxs_nand_spl.c b/drivers/mtd/nand/raw/mxs_nand_spl.c index 6b70d68fe7b..9e0b8afb522 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; +} -- cgit v1.3.1