Attention is currently required from: Edward O'Callaghan.

Nikolai Artemiev uploaded patch set #2 to this change.

View Change

programmer: Add get_region to spi/opaque masters

Add a get_region function to spi and opaque masters so that they can
expose access permissions for multiple regions within the flash.

A get_region() implementation is added for the ichspi driver in a
following patch.

Finally, another patch uses get_region() to make read_flash() and
write_flash() skip inaccessable regions, making read, write, and erase
operations work on Intel platforms with active an CSME coprocessor.

This logic will be integrated with layout in the future, but for now
this moves ichspi support forward without making refactoring too hard
later on.

BUG=b:260440773
BRANCH=none
TEST=ninja test

Change-Id: I8c43f6b705f36ef18842a04ba6241d3a0b36b232
Signed-off-by: Nikolai Artemiev <nartemiev@google.com>
---
M include/programmer.h
1 file changed, 39 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/26/70126/2

To view, visit change 70126. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I8c43f6b705f36ef18842a04ba6241d3a0b36b232
Gerrit-Change-Number: 70126
Gerrit-PatchSet: 2
Gerrit-Owner: Nikolai Artemiev <nartemiev@google.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Attention: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-MessageType: newpatchset