]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MTD] orion_nand: add chip_delay parameter
authorSaeed Bishara <saeed@marvell.com>
Mon, 5 May 2008 06:25:52 +0000 (19:25 -1100)
committerNicolas Pitre <nico@cam.org>
Mon, 30 Jun 2008 20:04:45 +0000 (16:04 -0400)
Some SoCs need a different chip_delay value.

Signed-off-by: Saeed Bishara <saeed@marvell.com>
Acked-by: Jörn Engel <joern@logfs.org>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
drivers/mtd/nand/orion_nand.c
include/asm-arm/plat-orion/orion_nand.h

index 59e05a1c50cf438086085dec1ebc6ca7ea4c36ef..ee2ac3948cd80b889332f004e5532cfaec4263ea 100644 (file)
@@ -85,6 +85,9 @@ static int __init orion_nand_probe(struct platform_device *pdev)
        nc->cmd_ctrl = orion_nand_cmd_ctrl;
        nc->ecc.mode = NAND_ECC_SOFT;
 
+       if (board->chip_delay)
+               nc->chip_delay = board->chip_delay;
+
        if (board->width == 16)
                nc->options |= NAND_BUSWIDTH_16;
 
index ffd3852a0dd79757577fd0b80a58f0788b7f9e43..ad4ce94c1998d30fdd645e5a226f862b88aea586 100644 (file)
@@ -18,6 +18,7 @@ struct orion_nand_data {
        u8 ale;         /* address line number connected to ALE */
        u8 cle;         /* address line number connected to CLE */
        u8 width;       /* buswidth */
+       u8 chip_delay;
 };