aboutsummaryrefslogtreecommitdiffstats
path: root/spi.h
diff options
context:
space:
mode:
authorNamyoon Woo <namyoon@google.com>2020-08-27 16:27:49 -0700
committerEdward O'Callaghan <quasisec@chromium.org>2020-09-07 00:54:16 +0000
commit79da18f86945784eb3b7134ee0abcaa71231d517 (patch)
treedcf9da3b585206b425b217471fc6e876339c722a /spi.h
parent84fc9e889d91276761a7d9c3fe9f7a763615a013 (diff)
downloadflashrom-79da18f86945784eb3b7134ee0abcaa71231d517.tar.gz
flashrom-79da18f86945784eb3b7134ee0abcaa71231d517.tar.bz2
flashrom-79da18f86945784eb3b7134ee0abcaa71231d517.zip
support 4-byte address format for VARIABLE_SIZE dummy flash device
This patch adds a support of 4-byte address format for VARIABLE_SIZE dummy flash device, so that it can emulate an flash size larger than 16 MBytes. - assigned a feature bits FEATURE_4BA to VARIABLE_SIZE flash config. - added codes handling two commands, JEDEC_READ_4BA and JEDEC_BYTE_PROGRAM_4BA. - changed blockeraser to use Chip-Erase command so that it can be free from flash address byte format. TEST=ran the command line below: $ flashrom -p dummy:image=${TMP_FILE},size=33554432, \ emulate=VARIABLE_SIZE -w ${IMG_32MB} -V -f $ flashrom -p dummy:image=${TMP_FILE},size=16777216, \ emulate=VARIABLE_SIZE -w ${IMG_16MB} -V -f $ flashrom -p dummy:image=${TMP_FILE},size=8388608, \ emulate=VARIABLE_SIZE -w ${IMG_8MB} -V -f Signed-off-by: Namyoon Woo <namyoon@google.com> Change-Id: Ia59eecfcbe798d50f8dacea98c3c508edf8ec77e Reviewed-on: https://review.coreboot.org/c/flashrom/+/44881 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'spi.h')
0 files changed, 0 insertions, 0 deletions