Name
nand_lock —
[REPLACEABLE] locks all blocks present in the device
Synopsis
int nand_lock ( | struct mtd_info * mtd, |
| loff_t ofs, |
| uint64_t len) ; |
Arguments
struct mtd_info * mtd
mtd info
loff_t ofs
offset to start unlock from
uint64_t len
length to unlock
Description
This feature is not supported 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.
Returns lock status.