diff options
author | Namyoon Woo <namyoon@google.com> | 2020-08-27 16:03:16 -0700 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2020-09-07 00:52:34 +0000 |
commit | 3149822cd45cb2e5841e15d648783748ba1b2ec6 (patch) | |
tree | ab0402c097da74a0e2bcc66f44a098349eb78c9c /chipdrivers.h | |
parent | 0e787b2e79ce838031b63666bc3c319788ee6a7e (diff) | |
download | flashrom-3149822cd45cb2e5841e15d648783748ba1b2ec6.tar.gz flashrom-3149822cd45cb2e5841e15d648783748ba1b2ec6.tar.bz2 flashrom-3149822cd45cb2e5841e15d648783748ba1b2ec6.zip |
support variable-size SPI chip for dummy programmer
This is designed for firmware updater to pack firmware image
preserving some specific partitions in any size.
BUG=none
TEST=ran the command line below:
$ flashrom -p dummy:image=${TMP_FILE},size=16777216, \
emulate=VARIABLE_SIZE -w ${IMG} -V -f
$ flashrom -p dummy:image=${TMP_FILE},size=auto, \
emulate=VARIABLE_SIZE -w ${IMG} -V -f
Signed-off-by: Namyoon Woo <namyoon@google.com>
Change-Id: Iff266e151459561b126ecfd1c47420b385be1db2
Reviewed-on: https://review.coreboot.org/c/flashrom/+/44879
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'chipdrivers.h')
-rw-r--r-- | chipdrivers.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chipdrivers.h b/chipdrivers.h index 3c7d1466c..cf0381172 100644 --- a/chipdrivers.h +++ b/chipdrivers.h @@ -196,6 +196,9 @@ int erase_sector_stm50(struct flashctx *flash, unsigned int block, unsigned int int probe_en29lv640b(struct flashctx *flash); int write_en29lv640b(struct flashctx *flash, const uint8_t *buf, unsigned int start, unsigned int len); +/* dummyflasher.c */ +int probe_variable_size(struct flashctx *flash); + /* edi.c */ int edi_chip_block_erase(struct flashctx *flash, unsigned int page, unsigned int size); int edi_chip_write(struct flashctx *flash, const uint8_t *buf, unsigned int start, unsigned int len); |