Xiang Wang has uploaded this change for review.
bitbang_spi.c: Fix bitbang_spi_send_command to make the delay symmetric
Change-Id: Icf8b65aed20244ccffc231da2c599c6ca1796104
Signed-off-by: Xiang Wang <merle@hardenedlinux.org>
---
M bitbang_spi.c
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/62/49262/1
diff --git a/bitbang_spi.c b/bitbang_spi.c
index 021b977..82e55ee 100644
--- a/bitbang_spi.c
+++ b/bitbang_spi.c
@@ -136,7 +136,9 @@
* programmer to use its own SPI engine for native accesses.
*/
bitbang_spi_request_bus(master);
+ programmer_delay(master->half_period);
bitbang_spi_set_cs(master, 0);
+ programmer_delay(master->half_period);
for (i = 0; i < writecnt; i++)
bitbang_spi_write_byte(master, writearr[i]);
To view, visit change 49262. To unsubscribe, or for help writing mail filters, visit settings.