aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/nand_base.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index bc1c2e6ae4a4..2201ca70af24 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -3106,6 +3106,8 @@ ident_done:
3106 chip->chip_shift += 32 - 1; 3106 chip->chip_shift += 32 - 1;
3107 } 3107 }
3108 3108
3109 chip->badblockbits = 8;
3110
3109 /* Set the bad block position */ 3111 /* Set the bad block position */
3110 if (mtd->writesize > 512 || (busw & NAND_BUSWIDTH_16)) 3112 if (mtd->writesize > 512 || (busw & NAND_BUSWIDTH_16))
3111 chip->badblockpos = NAND_LARGE_BADBLOCK_POS; 3113 chip->badblockpos = NAND_LARGE_BADBLOCK_POS;