]> git.sur5r.net Git - u-boot/commit
mtd: nand: Create a NAND reset function
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 21 Nov 2017 17:38:15 +0000 (02:38 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 28 Nov 2017 15:28:57 +0000 (00:28 +0900)
commit1728eb577dc1de459196ca45068f3feced77a198
treeda9b0da0d48e935c7af37ecae9a9f5515aac9500
parent6a1ff76ed33f8463e067fd4222e60e293c23a27b
mtd: nand: Create a NAND reset function

When NAND devices are resetted some initialization may have to be done,
like for example they have to be configured for the timing mode that
shall be used. To get a common place where this initialization can be
implemented create a nand_reset() function. This currently only issues
a NAND_CMD_RESET to the NAND device. The places issuing this command
manually are replaced with a call to nand_reset().

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
[Linux commit: 2f94abfe35b210e7711af9202a3dcfc9e779219a]
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/mtd/nand/nand_base.c
include/linux/mtd/nand.h