spi25: Try to set volatile quad-enable (QE) automatically

Some chips have a volatile QE bit. Setting this won't wear the status/
configuration register, so we'll try to do so automatically.

Change-Id: I6a4b864d7af1f3ecedd95524f127b5486f999933
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/191
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
diff --git a/include/flash.h b/include/flash.h
index fb64304..9743e3e 100644
--- a/include/flash.h
+++ b/include/flash.h
@@ -461,6 +461,7 @@
 	int address_high_byte;
 	bool in_4ba_mode;
 	bool in_qpi_mode;
+	bool volatile_qe_enabled;
 	/* For SPI flash chips, we dynamically select the fast-read operation. */
 	struct spi_read_op *spi_fast_read;