]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: nand: zynq: Add support for the NAND lock/unlock operation
authorJoe Hershberger <joe.hershberger@ni.com>
Tue, 7 Nov 2017 02:16:10 +0000 (18:16 -0800)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 29 Nov 2017 07:02:40 +0000 (08:02 +0100)
commit6d3fa0dfdd3cc0e5067785fcb9ca6267b1501fa4
tree0c5d300ce1b057aab6b375641f7f2da59fe1c3bb
parent310995d9f91ae56082b49be06fe8c3d01424f8f6
mtd: nand: zynq: Add support for the NAND lock/unlock operation

Zynq NAND driver is not support for NAND lock or unlock operation.
Hence, accidentally write into the critical NAND region might cause
data corruption to occur.

This commit is to add NAND lock/unlock command into NAND SMC register
set for NAND lock/unlock operaion.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Keng Soon Cheah <keng.soon.cheah@ni.com>
Cc: Chen Yee Chew <chen.yee.chew@ni.com>
Cc: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Scott Wood <oss@buserror.net>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/mtd/nand/zynq_nand.c