commit | 077c0d131a98f7b4fd19de3ff30e7dc9a558ce60 | [log] [tgz] |
---|---|---|
author | Nikolai Artemiev <nartemiev@google.com> | Thu Oct 21 01:50:15 2021 +1100 |
committer | Nico Huber <nico.h@gmx.de> | Fri Dec 30 01:16:45 2022 +0100 |
tree | c4281650f8f0d80d4de1d2b07de21b08c31f8a3b | |
parent | 1234d110cf11e2b72ef96349920d5b79d3089f6c [diff] |
libflashrom,writeprotect: add flashrom_wp_get_available_ranges() Generate list of available ranges by enumerating all possible values that range bits (BPx, TB, ...) can take and using the chip's range decoding function to get the range that is selected by each one. Tested: flashrom --wp-list Change-Id: Id51f038f03305c8536d80313e52f77d27835f34d Signed-off-by: Nikolai Artemiev <nartemiev@google.com> Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/58481 Original-Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/70971 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>