summaryrefslogtreecommitdiffstats
path: root/s25f.c
diff options
context:
space:
mode:
authorNikolai Artemiev <nartemiev@google.com>2020-11-05 13:54:27 +1100
committerEdward O'Callaghan <quasisec@chromium.org>2020-12-03 12:29:41 +0000
commitf745d0e6ab85f84b482aeac2ac4975e26db57389 (patch)
tree6e16b63a053feca4ad72f817fc36d191670b8c57 /s25f.c
parent705212dac9961398f552b749bddb0bc113dd2f18 (diff)
downloadflashrom-f745d0e6ab85f84b482aeac2ac4975e26db57389.tar.gz
flashrom-f745d0e6ab85f84b482aeac2ac4975e26db57389.tar.bz2
flashrom-f745d0e6ab85f84b482aeac2ac4975e26db57389.zip
flashrom.c: implement chip restore callback registration
Allows drivers to register a callback function to reset the chip state once programming has finished. This is used by the s25f driver added in a later patch, which needs to change the chip's sector layout to be able to write to the entire flash. Adapted from cros flashrom at `9c4c9a56b6a0370b383df9c75d71b3bd469e672d`. BUG=b:153800073 BRANCH=none TEST=builds Change-Id: I2a522dc1fd3952793fbcad70afc6dd43850fbbc5 Signed-off-by: Nikolai Artemiev <nartemiev@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/47276 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 's25f.c')
0 files changed, 0 insertions, 0 deletions