Skip to contentSkip to conversation

JFFS2 support

PATCH In review AYYANARPONNUSAMY GANGHEYAMOORTHY 1 participant 1 message Sep 19, 2008 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 JFFS2 support

This patch allows JFFS2 to be used on Flex-OneNAND We register the Flex-OneNAND driver with capability of MLC NAND flash.

---

drivers/mtd/onenand/onenand_base.c +2 -1
@@ -3262,7 +3262,8 @@ int onenand_scan(struct mtd_info *mtd, i
 
 	/* Fill in remaining MTD driver data */
 	mtd->type = MTD_NANDFLASH;
-	mtd->flags = MTD_CAP_NANDFLASH;
+	mtd->flags = ONENAND_IS_MLC(this) ? MTD_CAP_MLCNANDFLASH :
+			MTD_CAP_NANDFLASH;
 	mtd->erase = onenand_erase;
 	mtd->point = NULL;
 	mtd->unpoint = NULL;