cmd: mtd: OTP access support
Add access to OTP region. It supports info, dump, write and lock operations. Usage example: 'mtd otpread nand0 u 0 1024' - dump 1024 bytes of user area starting from offset 0 of device 'nand0'. 'mtd otpwrite nand0 10 11223344' - write binary data 0x11, 0x22, 0x33, 0x44 to offset 10 to user area of device 'nand0'. 'mtd otplock nand0 0 1024' - lock 1024 bytes of user area starting from offset 0 of device 'nand0'. 'mtd otpinfo nand0 f' - show info about factory area of device 'nand0'. Link: https://lore.kernel.org/all/20240326223919.3781-1-avkrasnov@salutedevices.com Signed-off-by: Arseniy Krasnov <avkrasnov@salutedevices.com> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
This commit is contained in:
committed by
Dario Binacchi
parent
cd6d71a2e9
commit
248fc16055
@@ -1361,6 +1361,13 @@ config CMD_MTD
|
||||
help
|
||||
MTD commands support.
|
||||
|
||||
config CMD_MTD_OTP
|
||||
bool "mtd otp"
|
||||
depends on CMD_MTD
|
||||
select HEXDUMP
|
||||
help
|
||||
MTD commands for OTP access.
|
||||
|
||||
config CMD_MUX
|
||||
bool "mux"
|
||||
depends on MULTIPLEXER
|
||||
|
||||
Reference in New Issue
Block a user