[U-Boot] [PATCH] fsmc: Skip BBT scan for bad block management

Vipin Kumar vipin.kumar at st.com
Thu Dec 6 08:21:28 CET 2012


This patch forces to read the bad block marker from location 0 in large page
nand devices and location 5 in small page devices.

Signed-off-by: Vipin Kumar <vipin.kumar at st.com>
Reviewed-by: Shiraz Hashim <shiraz.hashim at st.com>
---
 drivers/mtd/nand/fsmc_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/fsmc_nand.c b/drivers/mtd/nand/fsmc_nand.c
index 7a61d88..bce4298 100644
--- a/drivers/mtd/nand/fsmc_nand.c
+++ b/drivers/mtd/nand/fsmc_nand.c
@@ -433,7 +433,7 @@ int fsmc_nand_init(struct nand_chip *nand)
 	writel(FSMC_THIZ_1 | FSMC_THOLD_4 | FSMC_TWAIT_6 | FSMC_TSET_0,
 			&fsmc_regs_p->attrib);
 
-	nand->options = 0;
+	nand->options = NAND_SKIP_BBTSCAN;
 #if defined(CONFIG_SYS_FSMC_NAND_16BIT)
 	nand->options |= NAND_BUSWIDTH_16;
 #endif
-- 
1.8.0



More information about the U-Boot mailing list