nand: Add support for unlock.invert

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>
[scottwood@freescale.com: updated docs and added comment about invert bit]
Signed-off-by: Scott Wood <scottwood@freescale.com>
This commit is contained in:
Joe Hershberger
2012-08-22 16:49:42 -05:00
committed by Scott Wood
parent d62e9caaaf
commit eee623a504
4 changed files with 28 additions and 8 deletions

View File

@@ -228,6 +228,8 @@ NAND locking command (for chips with active LOCKPRE pin)
"nand unlock [offset] [size]"
unlock consecutive area (can be called multiple times for different areas)
"nand unlock.allexcept [offset] [size]"
unlock all except specified consecutive area
I have tested the code with board containing 128MiB NAND large page chips
and 32MiB small page chips.