From 418916428f38e86368c980cc7efdf5c9c615f7cd Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Tue, 24 May 2022 14:30:12 +0200 Subject: flashchips: Rename FEATURE_4BA_EXT_ADDR -> _EAR_C5C8 There are two competing sets of instructions to access the extended address register of 4BA SPI chips. Some chips even support both sets. To prepare for other instructions than the default 0xc5/0xc8, rename the original feature flag. Signed-off-by: Nico Huber Change-Id: Iacb7b68a9e3444fe28873ff0fe5e3fab16643c8c Ticket: https://ticket.coreboot.org/issues/357 Reviewed-on: https://review.coreboot.org/c/flashrom/+/64635 Tested-by: build bot (Jenkins) Reviewed-by: Thomas Heijligen --- dediprog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dediprog.c') diff --git a/dediprog.c b/dediprog.c index 3bd61a08c..7a7ae3b76 100644 --- a/dediprog.c +++ b/dediprog.c @@ -416,7 +416,7 @@ static int prepare_rw_cmd( } } } else { - if (flash->chip->feature_bits & FEATURE_4BA_EXT_ADDR) { + if (flash->chip->feature_bits & FEATURE_4BA_EAR_C5C8) { if (spi_set_extended_address(flash, start >> 24)) return 1; } else if (start >> 24) { -- cgit v1.2.3