public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 2/2] [MTD] [Flex-OneNAND] JFFS2 support
@ 2008-09-19 12:39 AYYANARPONNUSAMY GANGHEYAMOORTHY
  0 siblings, 0 replies; only message in thread
From: AYYANARPONNUSAMY GANGHEYAMOORTHY @ 2008-09-19 12:39 UTC (permalink / raw)
  To: linux-mtd; +Cc: David.Woodhouse

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>
---
--- 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;


 
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-19 12:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-19 12:39 [PATCH 2/2] [MTD] [Flex-OneNAND] JFFS2 support AYYANARPONNUSAMY GANGHEYAMOORTHY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox