Patchwork [2/2,MTD,Flex-OneNAND] JFFS2 support

login
register
mail settings
Submitter AYYANARPONNUSAMY GANGHEYAMOORTHY
Date Sept. 19, 2008, 12:39 p.m.
Message ID <21064664.53031221827956443.JavaMail.weblogic@epml16>
Download mbox | patch
Permalink /patch/624/
State New
Headers show

Comments

AYYANARPONNUSAMY GANGHEYAMOORTHY - Sept. 19, 2008, 12:39 p.m.
This patch allows JFFS2 to be used on Flex-OneNAND
We register the Flex-OneNAND driver with capability
of MLC NAND flash.

Signed-off-by: Rajshekar H Payagond <rajshekar.hp@samsung.com>

Patch

--- a/drivers/mtd/onenand/onenand_base.c	2008-09-02 13:53:40.000000000 +0530
+++ b/drivers/mtd/onenand/onenand_base.c	2008-09-02 13:54:34.000000000 +0530
@@ -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;