diff options
author | Chris Packham <[email protected]> | 2019-05-22 12:06:28 +1200 |
---|---|---|
committer | Miquel Raynal <[email protected]> | 2019-06-27 19:47:31 +0200 |
commit | 99a125f8edec391e423962847c6fd1d6994f0ad8 (patch) | |
tree | 0708fc1d567837a0865e757d34f60f6c16da4962 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | a188339ca5a396acc588e5851ed7e19f66b0ebd9 (diff) |
mtd: cfi_cmdset_0002: dynamically determine the max sectors
Because PPB unlocking unlocks the whole chip cfi_ppb_unlock() needs to
remember the locked status for each sector so it can re-lock the
unaddressed sectors. Dynamically calculate the maximum number of sectors
rather than using a hardcoded value that is too small for larger chips.
Tested with Spansion S29GL01GS11TFI flash device.
Signed-off-by: Chris Packham <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Acked-by: Vignesh Raghavendra <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions