Skip to contentSkip to conversation

- NAND - Samsung LP nand feature support - nand_base.c upated

PATCH In review Sameer 2 participants 2 messages Jan 4, 2008 – Apr 22, 2008

Subsystems (2)
lore
Share & tools
lore

Sameer

author
#0 lore raw

PATCH 1/1 - NAND - Samsung LP nand feature support - nand_base.c upated

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

Regards,
-Sameer

---
 drivers/mtd/nand/nand_base.c |    4 ++++
 1 files changed, 4 insertions(+)
drivers/mtd/nand/nand_base.c +0 -0
Index: 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
	 */
#1 lore raw
Quoted 17 lines · Sameer

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

Regards,
-Sameer

---
 drivers/mtd/nand/nand_base.c |    4 ++++
 1 files changed, 4 insertions(+)

Index: linux-omap-git/drivers/mtd/nand/nand_base.c
===================================================================

drivers/mtd/nand/nand_base.c static struct nand_flash_dev *nand_get_f · line 2328

Quoted 7 lines
drivers/mtd/nand/nand_base.c +4 -0
@@ -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;
+

This doesn't seem to make sense. These chips have the options bit set in the ID table by default, and we mask them _out_ for non-Samsung chips.

Which chip are you using, and why isn't it working as intended?

Signature · 1 line
dwmw2