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 <chat@joursoir.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83282
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <ericllai@google.com>
Reviewed-by: Subrata Banik <subratabanik@google.com>
This commit is contained in:
Alexander Goncharov 2024-07-01 00:19:31 +03:00 committed by Felix Held
parent 47a7fb3921
commit 75703772d1

View File

@ -737,6 +737,15 @@ static void dump_fcba(const struct fcba *fcba, const struct fpsba *fpsba)
else else
freq = (fcba->flcomp >> 17) & 7; freq = (fcba->flcomp >> 17) & 7;
decode_espi_frequency(freq); 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 { } else {
printf("\n Read Clock Frequency: "); printf("\n Read Clock Frequency: ");
decode_spi_frequency((fcba->flcomp >> 17) & 7); decode_spi_frequency((fcba->flcomp >> 17) & 7);