aboutsummaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2022-08-04 13:56:48 +0530
committerAnastasia Klimchuk <aklm@chromium.org>2022-09-26 05:23:35 +0000
commit7ed1337309d3fe74f5af09520970f0f1d417399a (patch)
tree58121613b5a511c293fa6fb07434ae2599e603c1 /bindings
parent5f326e43d24aad2ccba7699510a6eb2c7d053e38 (diff)
downloadflashrom-7ed1337309d3fe74f5af09520970f0f1d417399a.tar.gz
flashrom-7ed1337309d3fe74f5af09520970f0f1d417399a.tar.bz2
flashrom-7ed1337309d3fe74f5af09520970f0f1d417399a.zip
ichspi: Factor out common hwseq_xfer logic into helpers
List of changes: 1. Add a unified `execute SPI flash transfer` function that does: - Check the SCIP bit prior initiate new operation. - Start the transfer by setting address and length for transfer, finally set FGO bit. - Wait for the transaction to get completed/failed/timed out. 2. All HW Sequencing SPI operation uses `execute SPI flash transfer` function Note: The refactoring xfer logic here assumes setting `HSFC_FDBC to 0` while performing erase operation using `ich_hwseq_block_erase()`. But it does not impact the erase operations. BUG=b:223630977 TEST=Able to perform read-status/write-status/read/write/erase operation on PCH 600 series chipset (board name: google/kano). Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: Ic9fd50841449e02f476a8834f4642d6ecad36dc3 Reviewed-on: https://review.coreboot.org/c/flashrom/+/62869 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'bindings')
0 files changed, 0 insertions, 0 deletions