summaryrefslogtreecommitdiffstats
path: root/dediprog.c
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2020-08-26 07:58:16 +0200
committerNico Huber <nico.h@gmx.de>2021-05-11 10:17:21 +0000
commit12a55bcd2694d7742394504b4bd1ef11fea31c5b (patch)
tree5de49d1d53ac025da4593db553a01724f5dc6a68 /dediprog.c
parentb81dbc5233c89f35b51dc763d531a337d4237a8f (diff)
downloadflashrom-12a55bcd2694d7742394504b4bd1ef11fea31c5b.tar.gz
flashrom-12a55bcd2694d7742394504b4bd1ef11fea31c5b.tar.bz2
flashrom-12a55bcd2694d7742394504b4bd1ef11fea31c5b.zip
dediprog: Disable SPI_MASTER_NO_4BA_MODES for additional devices
The SPI_MASTER_NO_4BA_MODES is for SPI master not keeping the flash powered between programming commands. Tests on the following devices showed that the power is stable accross commands: * SF100 protocol 2 V:6.5.03 * SF600 protocol 3 V:7.2.45 Change-Id: Iee0ba972245b9317ef86345432fec5fc32614888 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/44776 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Diffstat (limited to 'dediprog.c')
-rw-r--r--dediprog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dediprog.c b/dediprog.c
index c50e374e7..ac7d4624c 100644
--- a/dediprog.c
+++ b/dediprog.c
@@ -1267,7 +1267,8 @@ int dediprog_init(void)
if (dediprog_standalone_mode())
return 1;
- if (dediprog_devicetype == DEV_SF100 && protocol() == PROTOCOL_V1)
+ if ((dediprog_devicetype == DEV_SF100) ||
+ (dediprog_devicetype == DEV_SF600 && protocol() == PROTOCOL_V3))
spi_master_dediprog.features &= ~SPI_MASTER_NO_4BA_MODES;
if (protocol() == PROTOCOL_V2)