Skip to content

Commit

Permalink
[MTD] orion_nand: add chip_delay parameter
Browse files Browse the repository at this point in the history
Some SoCs need a different chip_delay value.

Signed-off-by: Saeed Bishara <[email protected]>
Acked-by: Jörn Engel <[email protected]>
Signed-off-by: Lennert Buytenhek <[email protected]>
Signed-off-by: Nicolas Pitre <[email protected]>
  • Loading branch information
Saeed Bishara authored and Nicolas Pitre committed Jun 30, 2008
1 parent 395aed6 commit f4db56f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/mtd/nand/orion_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions include/asm-arm/plat-orion/orion_nand.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};


Expand Down

0 comments on commit f4db56f

Please sign in to comment.