]> www.infradead.org Git - mtd-utils.git/commit
mtd-utils: add optional offset parameter to flash_otp_dump
authorMichael Walle <michael@walle.cc>
Wed, 8 Jan 2020 23:23:59 +0000 (00:23 +0100)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 13 Jan 2020 09:37:33 +0000 (10:37 +0100)
commit0a5e2fa5c1e41c6fba3bb30ac2d1d7b72d23d6bb
tree689c916526a3a64783a2907952dc3f31f18a278e
parent1312aedbe0a346999581b243324594e1abe2cebf
mtd-utils: add optional offset parameter to flash_otp_dump

There are flashes which have gaps between OTP regions and flashes where
the regions don't start at 0 (for example the Winbond 25Q series, which
has three 256 bytes OTP regions starting at 0x1000, 0x2000 and 0x3000).
At the moment it is impossible to dump the OTP memory. Fix it by passing
an optional offset parameter.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
misc-utils/flash_otp_dump.c