aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nand_base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/nand/nand_base.c')
-rw-r--r--drivers/mtd/nand/nand_base.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 5fb00957fd25..aebc7ea9f379 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -3238,6 +3238,9 @@ static void nand_decode_id(struct mtd_info *mtd, struct nand_chip *chip,
3238 mtd->oobsize = mtd->writesize / 32; 3238 mtd->oobsize = mtd->writesize / 32;
3239 *busw = type->options & NAND_BUSWIDTH_16; 3239 *busw = type->options & NAND_BUSWIDTH_16;
3240 3240
3241 /* All legacy ID NAND are small-page, SLC */
3242 chip->bits_per_cell = 1;
3243
3241 /* 3244 /*
3242 * Check for Spansion/AMD ID + repeating 5th, 6th byte since 3245 * Check for Spansion/AMD ID + repeating 5th, 6th byte since
3243 * some Spansion chips have erasesize that conflicts with size 3246 * some Spansion chips have erasesize that conflicts with size