]> git.ipfire.org Git - people/ms/u-boot.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)
committerTom Rini <trini@konsulko.com>
Fri, 6 Mar 2015 01:49:42 +0000 (20:49 -0500)
commitd8af39337ea82403fb54a9d345d2e47fac4a8460
tree84ed2f04b4c4f0dd8932be015f98dbfedd92476b
parent22b7509efb35d7bda05260d5730124dbdc3ea9dc
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