[PATCH] - NAND - Samsung LP nand feature support - nand_base.c upated

Sameer x0081444 at ti.com
Fri Jan 4 10:23:05 EST 2008


Hi,
This patch add the Large page NAND feature support for Samsung nand flash.

Regards,
-Sameer


Signed-off-by: Sameer U <sameersu at ti.com>
---
 drivers/mtd/nand/nand_base.c |    4 ++++
 1 files changed, 4 insertions(+)

Index: linux-omap-git/drivers/mtd/nand/nand_base.c
===================================================================
--- linux-omap-git.orig/drivers/mtd/nand/nand_base.c
+++ linux-omap-git/drivers/mtd/nand/nand_base.c
@@ -2322,6 +2322,10 @@ static struct nand_flash_dev *nand_get_f
	chip->options &= ~NAND_CHIPOPTIONS_MSK;
	chip->options |= type->options & NAND_CHIPOPTIONS_MSK;

+	/* adding feature support for large page samsung nand */
+	if ((*maf_id == NAND_MFR_SAMSUNG) && (mtd->writesize > 512))
+		chip->options |= NAND_SAMSUNG_LP_OPTIONS;
+
	/*
	 * Set chip as a default. Board drivers can override it, if necessary
	 */




More information about the linux-mtd mailing list