]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
nand: Make NAND lock status compatible with Micron
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 22 Aug 2012 21:49:45 +0000 (16:49 -0500)
committerScott Wood <scottwood@freescale.com>
Mon, 17 Sep 2012 22:33:43 +0000 (17:33 -0500)
commite70bfa2986f9c028e3c21e0995285047a9baec27
tree5379f528e5b17be0ac20932f9369a704cd5ab2ef
parent33b1d5cae3defdbeb30333ffac41bcbff85c5019
nand: Make NAND lock status compatible with Micron

Micron NAND flash (e.g. MT29F4G08ABADAH4) BLOCK LOCK READ STATUS is not
the same as others.  Instead of bit 1 being lock, it is #lock_tight.
To make the driver support either format, ignore bit 1 and use only
bit 0 and bit 2.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
common/cmd_nand.c
drivers/mtd/nand/nand_util.c
include/nand.h