Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=dd11b8cdf0c455f4cfbc5daa70aabce9dcc6c07b
Commit:     dd11b8cdf0c455f4cfbc5daa70aabce9dcc6c07b
Parent:     4a0c50c07a6100ca58d465bac951533347e18d71
Author:     Andrew Victor <[EMAIL PROTECTED]>
AuthorDate: Fri Dec 8 13:49:42 2006 +0200
Committer:  David Woodhouse <[EMAIL PROTECTED]>
CommitDate: Fri Dec 8 13:25:17 2006 +0000

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: David Woodhouse <[EMAIL PROTECTED]>
---
 drivers/mtd/nand/at91_nand.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/nand/at91_nand.c b/drivers/mtd/nand/at91_nand.c
index a58ed37..14b80cc 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)
        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);
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to