aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2023-01-25 14:07:46 +1100
committerEdward O'Callaghan <quasisec@chromium.org>2023-02-01 02:51:07 +0000
commit515cd09c26d80631e7d7ddb2338bc1762362d76f (patch)
tree687bed25acd88ee169256a824d7ab5441d24bdf8
parent0a6fa239241a951e524e74254b9a3bc4a323b2c7 (diff)
downloadflashrom-515cd09c26d80631e7d7ddb2338bc1762362d76f.tar.gz
flashrom-515cd09c26d80631e7d7ddb2338bc1762362d76f.tar.bz2
flashrom-515cd09c26d80631e7d7ddb2338bc1762362d76f.zip
dummyflasher.c: Speed up programmer ops without delay
There is no need to perform delays for the dummyflasher as there is no chipsets to settle down. BUG=b:266014935 TEST=builds Change-Id: I43411b6d1558d1a5da4c7508618f8a6ec6d9bf95 Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/72423 Reviewed-by: Sam McNally <sammc@google.com> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Alexander Goncharov <chat@joursoir.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--dummyflasher.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/dummyflasher.c b/dummyflasher.c
index 93f183aa..2bdd10cf 100644
--- a/dummyflasher.c
+++ b/dummyflasher.c
@@ -919,6 +919,10 @@ static int dummy_shutdown(void *data)
return 0;
}
+static void dummy_nop_delay(const struct flashctx *flash, unsigned int usecs)
+{
+}
+
static const struct spi_master spi_master_dummyflasher = {
.map_flash_region = dummy_map,
.unmap_flash_region = dummy_unmap,
@@ -930,6 +934,7 @@ static const struct spi_master spi_master_dummyflasher = {
.read = default_spi_read,
.write_256 = dummy_spi_write_256,
.probe_opcode = dummy_spi_probe_opcode,
+ .delay = dummy_nop_delay,
};
static const struct par_master par_master_dummyflasher = {
@@ -943,6 +948,7 @@ static const struct par_master par_master_dummyflasher = {
.chip_writew = dummy_chip_writew,
.chip_writel = dummy_chip_writel,
.chip_writen = dummy_chip_writen,
+ .delay = dummy_nop_delay,
};
static const struct opaque_master opaque_master_dummyflasher = {
@@ -950,6 +956,7 @@ static const struct opaque_master opaque_master_dummyflasher = {
.read = dummy_opaque_read,
.write = dummy_opaque_write,
.erase = dummy_opaque_erase,
+ .delay = dummy_nop_delay,
};
static int init_data(const struct programmer_cfg *cfg,