aboutsummaryrefslogtreecommitdiffstats
path: root/dummyflasher.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2022-09-07 12:51:16 +1000
committerEdward O'Callaghan <quasisec@chromium.org>2022-12-12 00:01:10 +0000
commit78e421bdf73d5739daa25a9f71b2c323dc98e840 (patch)
tree293a63c17096eb667bea701e332d6ed911e8d7d0 /dummyflasher.c
parent048aab6d66c45423386d0216fd7bf445fbd1dc7f (diff)
downloadflashrom-78e421bdf73d5739daa25a9f71b2c323dc98e840.tar.gz
flashrom-78e421bdf73d5739daa25a9f71b2c323dc98e840.tar.bz2
flashrom-78e421bdf73d5739daa25a9f71b2c323dc98e840.zip
tree/: Move programmer_delay() out of programmer state machine
Handle the special cases of both serprog and ch341a_spi. Also rewrite programmer_delay() to handle the two base cases of zero time and no valid flashctx yet before handling per master branching. Additionally, modify the custom delay function pointer signature to allow closure over the flashctx. This allows driver specific delay implementations to recover programmer specific opaque data within their delay implementations. Therefore programmer specific delay functions can avoid programmer specific globals. Change-Id: Id059abb58b31a066a408009073912da2b224d40c Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/67393 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Diffstat (limited to 'dummyflasher.c')
0 files changed, 0 insertions, 0 deletions