Skip to content

Commit

Permalink
[MTD] NAND: Support for 16-bit bus-width on AT91.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Victor authored and David Woodhouse committed Dec 8, 2006
1 parent 4a0c50c commit dd11b8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/mtd/nand/at91_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ static int __init at91_nand_probe(struct platform_device *pdev)
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);

Expand Down

0 comments on commit dd11b8c

Please sign in to comment.