aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndrew Victor <andrew@sanpeople.com>2006-12-08 06:49:42 -0500
committerDavid Woodhouse <dwmw2@infradead.org>2006-12-08 08:25:17 -0500
commitdd11b8cdf0c455f4cfbc5daa70aabce9dcc6c07b (patch)
treef970d15a6737c1856cd08e7ce2bd80dfabb6027a /drivers
parent4a0c50c07a6100ca58d465bac951533347e18d71 (diff)
[MTD] NAND: Support for 16-bit bus-width on AT91.
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> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/at91_nand.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/nand/at91_nand.c b/drivers/mtd/nand/at91_nand.c
index a58ed3763086..14b80cc90a7b 100644
--- a/drivers/mtd/nand/at91_nand.c
+++ b/drivers/mtd/nand/at91_nand.c
@@ -128,6 +128,9 @@ static int __init at91_nand_probe(struct platform_device *pdev)
128 nand_chip->ecc.mode = NAND_ECC_SOFT; /* enable ECC */ 128 nand_chip->ecc.mode = NAND_ECC_SOFT; /* enable ECC */
129 nand_chip->chip_delay = 20; /* 20us command delay time */ 129 nand_chip->chip_delay = 20; /* 20us command delay time */
130 130
131 if (host->board->bus_width_16) /* 16-bit bus width */
132 nand_chip->options |= NAND_BUSWIDTH_16;
133
131 platform_set_drvdata(pdev, host); 134 platform_set_drvdata(pdev, host);
132 at91_nand_enable(host); 135 at91_nand_enable(host);
133 136