From 7eb38aa7dbd45cbc040ac513ed4375995246aa93 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Thu, 21 Mar 2019 15:42:54 +0100 Subject: dediprog: Implement 4BA EAR mode for protocol v1 With an SF100 and protocol version 1, using the extended address register of the flash chip seems safe. Make use of that and remove the broken 4BA modes flag. Tested with SF100 V:5.1.9 and W25Q256FV. Change-Id: If926cf3cbbebf88231116c4d65bafc19d23646f6 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/flashrom/+/32016 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks --- spi25.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spi25.c') diff --git a/spi25.c b/spi25.c index 8b6c4626..fd87dc9a 100644 --- a/spi25.c +++ b/spi25.c @@ -363,7 +363,7 @@ static int spi_write_extended_address_register(struct flashctx *const flash, con return result; } -static int spi_set_extended_address(struct flashctx *const flash, const uint8_t addr_high) +int spi_set_extended_address(struct flashctx *const flash, const uint8_t addr_high) { if (flash->address_high_byte != addr_high && spi_write_extended_address_register(flash, addr_high)) -- cgit v1.2.3