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

login
register
mail settings
Submitter Vipin Kumar
Date Dec. 6, 2012, 7:21 a.m.
Message ID <089c80c399ab4e2db2cfe3efcb31e1ca3fcf62b0.1354778423.git.vipin.kumar@st.com>
Download mbox | patch
Permalink /patch/204162/
State Rejected
Delegated to: Scott Wood
Headers show

Comments

Vipin Kumar - Dec. 6, 2012, 7:21 a.m.
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@st.com>
Reviewed-by: Shiraz Hashim <shiraz.hashim@st.com>
---
 drivers/mtd/nand/fsmc_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

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