]> git.sur5r.net Git - u-boot/commit
nand_spl: Fix cmd_ctrl usage in nand_boot.c.
authorScott Wood <scottwood@freescale.com>
Wed, 24 Jun 2009 22:23:49 +0000 (17:23 -0500)
committerScott Wood <scottwood@freescale.com>
Tue, 7 Jul 2009 22:58:10 +0000 (17:58 -0500)
commit1dac3a51875967f32641bbc0d26dc382ef02330a
treeda3189b90533d3a383021a92a91352141e138d36
parent98713d2663d5d30dde74f48f547114a2bfd9d463
nand_spl: Fix cmd_ctrl usage in nand_boot.c.

When adding large page NAND support to this file, I had a misunderstanding
about the exact semantics of NAND_CTRL_CHANGE (which isn't documented
anywhere I can find) -- it is apparently just a hint to drivers,
which aren't required to preserve the old value for subsequent
non-"change" invocations.

This change makes nand_boot.c no longer assume this.  Note that this
happened to work by chance with some NAND drivers, which don't preserve
the value, but treat 0 equivalently to NAND_CTRL_ALE.

I don't have hardware to test this, so any testing is appreciated.

Signed-off-by: Scott Wood <scottwood@freescale.com>
nand_spl/nand_boot.c