aboutsummaryrefslogtreecommitdiffstats
path: root/bitbang_spi.c
diff options
context:
space:
mode:
authorAarya Chaumal <aarya.chaumal@gmail.com>2022-06-23 16:21:23 +0530
committerThomas Heijligen <src@posteo.de>2022-06-27 08:53:00 +0000
commitd41595e207107f3716535f6fb128a32db6c2fefa (patch)
treeb5c4c9c349c5d972124803bd1c76958098085f3c /bitbang_spi.c
parent2343ad9ffe0bc1ce45567ff6abcc40f2e4a5f3a7 (diff)
downloadflashrom-d41595e207107f3716535f6fb128a32db6c2fefa.tar.gz
flashrom-d41595e207107f3716535f6fb128a32db6c2fefa.tar.bz2
flashrom-d41595e207107f3716535f6fb128a32db6c2fefa.zip
spi25.c: Add function to return opcode of passed erase fucntion pointer
There is a function, spi_get_erasefn_from_opcode, which returns the erase function for given opcode. Add a function which does the opposite i.e. returns the opcode for given erase function. Change-Id: Ia3aefc9b9465efdd16b1678bb2ada9a23f00d316 Signed-off-by: Aarya Chaumal <aarya.chaumal@gmail.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/65355 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Thomas Heijligen <src@posteo.de>
Diffstat (limited to 'bitbang_spi.c')
0 files changed, 0 insertions, 0 deletions