ichspi: Introduce SPI_ENGINE_PCH100 marker
Use a new SPI_ENGINE_PCH100 marker in ich9_spi_init(). Suddenly this
functions becomes more readable again.
Tested read/erase/write in `swseq' and `hwseq' modes with 7 series &
reading with ADL-P. Log output stays consistent.
Change-Id: Iff03354ee886eb1ea80e37e50914b8afff08a29e
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/174
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
diff --git a/include/programmer.h b/include/programmer.h
index f3e32c6..b70efa4 100644
--- a/include/programmer.h
+++ b/include/programmer.h
@@ -349,7 +349,10 @@
CHIPSET_8_SERIES_WELLSBURG,
CHIPSET_9_SERIES_WILDCAT_POINT,
CHIPSET_9_SERIES_WILDCAT_POINT_LP,
- CHIPSET_100_SERIES_SUNRISE_POINT, /* also 6th/7th gen Core i/o (LP) variants */
+
+ SPI_ENGINE_PCH100, /******* PCH100 compatible from here on *******/
+
+ CHIPSET_100_SERIES_SUNRISE_POINT = SPI_ENGINE_PCH100,
CHIPSET_C620_SERIES_LEWISBURG,
CHIPSET_300_SERIES_CANNON_POINT,
CHIPSET_500_SERIES_TIGER_POINT,