util/ifdtool: Fix eSPI frequency as per Gen 11 SPI flash guide
BUG=b:153888802
TEST=Able to list correct eSPI frequency as per TGL SPI flash guide
Without this CL :
Found Component Section
FLCOMP 0x093030f6
Dual Output Fast Read Support: not supported
Read ID/Read Status Clock Frequency: 50MHz
Write/Erase Clock Frequency: 50MHz
Fast Read Clock Frequency: 50MHz
Fast Read Support: supported
Read Clock Frequency: 20MHz
With this CL :
Found Component Section
FLCOMP 0x093030f6
Dual Output Fast Read Support: not supported
Read ID/Read Status Clock Frequency: 50MHz
Write/Erase Clock Frequency: 50MHz
Fast Read Clock Frequency: 50MHz
Fast Read Support: supported
Read eSPI/EC Bus Frequency: 60MHz
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Change-Id: I20840e6f931d7c1fabea0b6892e3bd19ead81168
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44820
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
diff --git a/util/ifdtool/ifdtool.h b/util/ifdtool/ifdtool.h
index 0842924..b725823 100644
--- a/util/ifdtool/ifdtool.h
+++ b/util/ifdtool/ifdtool.h
@@ -71,6 +71,23 @@
SPI_FREQUENCY_14MHZ = 6,
};
+enum espi_frequency {
+ ESPI_FREQUENCY_20MHZ = 0,
+ ESPI_FREQUENCY_24MHZ = 1,
+ ESPI_FREQUENCY_30MHZ = 2,
+ ESPI_FREQUENCY_48MHZ = 3,
+ ESPI_FREQUENCY_60MHZ = 4,
+ ESPI_FREQUENCY_17MHZ = 6,
+};
+
+enum espi_frequency_500_series {
+ ESPI_FREQUENCY_500SERIES_20MHZ = 0,
+ ESPI_FREQUENCY_500SERIES_24MHZ = 1,
+ ESPI_FREQUENCY_500SERIES_25MHZ = 2,
+ ESPI_FREQUENCY_500SERIES_48MHZ = 3,
+ ESPI_FREQUENCY_500SERIES_60MHZ = 4,
+};
+
enum component_density {
COMPONENT_DENSITY_512KB = 0,
COMPONENT_DENSITY_1MB = 1,