From 75703772d1163701537e71c5b933465387e209e9 Mon Sep 17 00:00:00 2001 From: Alexander Goncharov Date: Mon, 1 Jul 2024 00:19:31 +0300 Subject: util/ifdtool: dump SPI modes from FLCOMP These fields are documented in the Alder Lake-S Client Platform SPI Programming Guide, but they are not presented in the Skylake-LP Client Platform SPI Programming Guide Change-Id: I624fe5cb28aa3cb207bc48aa8d31b2a71b70bcf2 Signed-off-by: Alexander Goncharov Reviewed-on: https://review.coreboot.org/c/coreboot/+/83282 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai Reviewed-by: Subrata Banik --- util/ifdtool/ifdtool.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'util') diff --git a/util/ifdtool/ifdtool.c b/util/ifdtool/ifdtool.c index 033ccf4834..32b2081d93 100644 --- a/util/ifdtool/ifdtool.c +++ b/util/ifdtool/ifdtool.c @@ -737,6 +737,15 @@ static void dump_fcba(const struct fcba *fcba, const struct fpsba *fpsba) else freq = (fcba->flcomp >> 17) & 7; decode_espi_frequency(freq); + + printf("\n Quad I/O Read: %s", + (fcba->flcomp & (1 << 15)) ? "enabled" : "disabled"); + printf("\n Quad Output Read: %s", + (fcba->flcomp & (1 << 14)) ? "enabled" : "disabled"); + printf("\n Dual I/O Read: %s", + (fcba->flcomp & (1 << 13)) ? "enabled" : "disabled"); + printf("\n Dual Output Read: %s", + (fcba->flcomp & (1 << 12)) ? "enabled" : "disabled"); } else { printf("\n Read Clock Frequency: "); decode_spi_frequency((fcba->flcomp >> 17) & 7); -- cgit v1.2.3