nand_lock — [REPLACABLE] locks all blockes present in the device
int fsfuncnand_lock ( | struct mtd_info * mtd, |
loff_t ofs, | |
uint64_t len) ; |
param
mtd - mtd info
param
ofs - offset to start unlock from
param
len - length to unlock
return
- lock status
This feature is not support in many NAND parts. 'Micron' NAND parts do have this feature, but it allows only to lock all blocks not for specified range for block.
Implementing 'lock' feature by making use of 'unlock', for now.