Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4db56ff authored by Saeed Bishara's avatar Saeed Bishara Committed by Nicolas Pitre
Browse files

[MTD] orion_nand: add chip_delay parameter



Some SoCs need a different chip_delay value.

Signed-off-by: default avatarSaeed Bishara <saeed@marvell.com>
Acked-by: default avatarJörn Engel <joern@logfs.org>
Signed-off-by: default avatarLennert Buytenhek <buytenh@marvell.com>
Signed-off-by: default avatarNicolas Pitre <nico@marvell.com>
parent 395aed6d
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -85,6 +85,9 @@ static int __init orion_nand_probe(struct platform_device *pdev)
	nc->cmd_ctrl = orion_nand_cmd_ctrl;
	nc->cmd_ctrl = orion_nand_cmd_ctrl;
	nc->ecc.mode = NAND_ECC_SOFT;
	nc->ecc.mode = NAND_ECC_SOFT;


	if (board->chip_delay)
		nc->chip_delay = board->chip_delay;

	if (board->width == 16)
	if (board->width == 16)
		nc->options |= NAND_BUSWIDTH_16;
		nc->options |= NAND_BUSWIDTH_16;


+1 −0
Original line number Original line Diff line number Diff line
@@ -18,6 +18,7 @@ struct orion_nand_data {
	u8 ale;		/* address line number connected to ALE */
	u8 ale;		/* address line number connected to ALE */
	u8 cle;		/* address line number connected to CLE */
	u8 cle;		/* address line number connected to CLE */
	u8 width;	/* buswidth */
	u8 width;	/* buswidth */
	u8 chip_delay;
};
};