* [PATCH] [MTD] NAND: Support for 16-bit bus-width on AT91.
@ 2006-12-08 11:49 Andrew Victor
0 siblings, 0 replies; only message in thread
From: Andrew Victor @ 2006-12-08 11:49 UTC (permalink / raw)
To: dwmw2; +Cc: linux-mtd
Add support for 16-bit NAND bus-width for the AT91 NAND driver.
The 16-bit NAND is found on the Atmel AT91SAM9260-EK and AT91SAM9261-EK
boards.
Orignal Patch from Patrice Vilchez
Signed-off-by: Andrew Victor <andrew@sanpeople.com>
diff -urN -x CVS linux-2.6.19-final/drivers/mtd/nand/at91_nand.c linux-2.6.19/drivers/mtd/nand/at91_nand.c
--- linux-2.6.19-final/drivers/mtd/nand/at91_nand.c Fri Dec 8 12:56:33 2006
+++ linux-2.6.19/drivers/mtd/nand/at91_nand.c Wed Nov 15 08:12:22 2006
@@ -128,6 +128,9 @@
nand_chip->ecc.mode = NAND_ECC_SOFT; /* enable ECC */
nand_chip->chip_delay = 20; /* 20us command delay time */
+ if (host->board->bus_width_16) /* 16-bit bus width */
+ nand_chip->options |= NAND_BUSWIDTH_16;
+
platform_set_drvdata(pdev, host);
at91_nand_enable(host);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-12-08 11:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-08 11:49 [PATCH] [MTD] NAND: Support for 16-bit bus-width on AT91 Andrew Victor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox