
Hi Scott,
On Mon, Sep 17, 2012 at 5:35 PM, Scott Wood scottwood@freescale.com wrote:
On Wed, Aug 22, 2012 at 04:49:42PM -0500, Joe Hershberger wrote:
NAND unlock command allows an invert bit to be set to unlock all but the selected page range.
Signed-off-by: Joe Hershberger joe.hershberger@ni.com
Changes in v2:
- Changed invert to allexcept
- Changed unlock printf to debug print
- Dropped cast in unlock debug print
common/cmd_nand.c | 13 ++++++++++--- drivers/mtd/nand/nand_util.c | 10 +++++++--- include/nand.h | 4 ++-- 3 files changed, 19 insertions(+), 8 deletions(-)
Applied to u-boot-nand-flash with the diff below. Do you know if all chips that support locking support the invert bit? If not, we should at least update the documentation to mention this (though runtime detection would be good if practical).
I'm not aware of a part that supports lock and not the invert functionality. I'm also not aware of a way to detect at runtime if it is supported.
Thanks, -Joe