Nikolai Artemiev uploaded patch set #6 to this change.
[RFC] writeprotect: add structure to represent chip wp state
This patch adds `struct wp_chip_state` to represent the writeprotect
configuration of a chip. It will be used as a common representation
throughout wp code for the current state of a chip as well as the
modifications that should be written back to a chip.
This allows operations that query a chip's wp configuration to reuse the
read function and operations that modify the wp configuration to reuse
the read and write functions.
Supporting other chips may require additional fields to be added to the
structure.
BUG=b:195381327,b:153800563
TEST=flashrom --wp-{enable,disable,range,list,status} at end of patch series
BRANCH=none
Change-Id: I17dee630248ce7b51e624a6e46d7097d5d0de809
Signed-off-by: Nikolai Artemiev <nartemiev@google.com>
---
M writeprotect.h
1 file changed, 26 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/78/58478/6
To view, visit change 58478. To unsubscribe, or for help writing mail filters, visit settings.