u-boot/include/linux/mtd
Boris Brezillon 3d841b3214 mtd: nand: Fix data interface configuration logic
When changing from one data interface setting to another, one has to
ensure a specific sequence which is described in the ONFI spec.

One of these constraints is that the CE line has go high after a reset
before a command can be sent with the new data interface setting, which
is not guaranteed by the current implementation.

Rework the nand_reset() function and all the call sites to make sure the
CE line is asserted and released when required.

Also make sure to actually apply the new data interface setting on the
first die.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Fixes: d8e725dd8311 ("mtd: nand: automate NAND timings selection")
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
[Linux commit: 73f907fd5fa56b0066d199bdd7126bbd04f6cd7b]
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2017-11-29 00:28:58 +09:00
..
bbm.h mtd, ubi, ubifs: resync with Linux-3.14 2014-08-25 19:25:55 -04:00
concat.h include/linux/mtd: Update copyright notices 2015-11-12 13:19:03 -05:00
doc2000.h include/linux/mtd: Update copyright notices 2015-11-12 13:19:03 -05:00
flashchip.h kbuild: force to define __UBOOT__ in all the C sources 2014-09-16 12:23:56 -04:00
fsl_upm.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsmc_nand.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mtd.h mtd: remove MTDDEBUG() and CONFIG_MTD_DEBUG 2017-10-23 14:07:26 -04:00
nand.h mtd: nand: Fix data interface configuration logic 2017-11-29 00:28:58 +09:00
nand_bch.h mtd: nand: Sync with Linux v4.6 2016-06-03 20:27:48 -05:00
nand_ecc.h include/linux/mtd: Update copyright notices 2015-11-12 13:19:03 -05:00
ndfc.h Add support for AMCC Sequoia PPC440EPx eval board 2006-09-07 11:51:23 +02:00
omap_elm.h mtd: nand: omap_elm: use macros for register definitions 2014-06-06 17:45:50 -04:00
omap_gpmc.h armv7: armv7: introduce set_gpmc_cs0 2016-07-22 14:46:11 -04:00
onenand.h linux/compat.h: rename from linux/mtd/compat.h 2012-04-30 16:54:51 +02:00
onenand_regs.h Flex-OneNAND driver support 2009-11-13 16:56:18 -06:00
partitions.h mtd, ubi, ubifs: resync with Linux-3.14 2014-08-25 19:25:55 -04:00
samsung_onenand.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
st_smi.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ubi.h ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00