]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
mtd: nand: omap_gpmc: Make ready/busy pins configurable
authorMichal Sojka <sojka@merica.cz>
Tue, 17 Feb 2015 16:08:37 +0000 (17:08 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:24:11 +0000 (14:24 +0200)
commit8f2cfc5ad338cf9b54de29dad00f4b5beb29069c
tree8ac25e92e8e9ad3435ae3884d9ea340f627d93df
parenta3528007167f0fd4f4c7ef7305a07487ba539e93
mtd: nand: omap_gpmc: Make ready/busy pins configurable

Commit fb384c4720ca7496775d6578f184bf628db73456 introduced the use of
WAIT0 pin for determining whether the NAND is ready or not. This only
works if all NAND chips are connected to WAIT0. If some chips are
connected to the other available pin WAIT1, nand_wait() does not really
wait and prints a WARN_ON message.

This patch allows the board to provide configuration of which chip is
connected to which WAITx signal. For example, one can define in
include/configs/foo.h:

    #define CONFIG_NAND_OMAP_GPMC_WSCFG     0,0,1,1

This would mean that chips using to CS0 and 1 are connected to WAIT0 and
chips with CS2 and 3 are connected to WAIT1.

Signed-off-by: Michal Sojka <sojka@merica.cz>
Acked-by: Stefan Roese <sr@denx.de>
Tested-by: Michal Vokáč <michal.vokac@comap.cz>
Cc: Tom Rini <trini@ti.com>
drivers/mtd/nand/omap_gpmc.c