summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Roth <martinroth@chromium.org>2021-05-14 10:57:31 -0600
committerPatrick Georgi <pgeorgi@google.com>2021-05-20 08:00:20 +0000
commit7a2bfeb46621f94d2406c57456341b773a5e9e28 (patch)
tree82af65873937f102cb85af7ae77d5c8f7fc55948
parent8a6d2ccfa35f2b7877405dfeba7d0e64c3457506 (diff)
downloadcoreboot-7a2bfeb46621f94d2406c57456341b773a5e9e28.tar.xz
soc/amd/common: Show espi init in log
BUG=None TEST=See espi init messages in the log. Signed-off-by: Martin Roth <martinroth@chromium.org> Change-Id: I9f856402ed9a026427d3529e6d61450b0623fe48 Reviewed-on: https://review.coreboot.org/c/coreboot/+/54637 Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/soc/amd/common/block/lpc/espi_util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/lpc/espi_util.c b/src/soc/amd/common/block/lpc/espi_util.c
index c5aac3814a..9bad4c2152 100644
--- a/src/soc/amd/common/block/lpc/espi_util.c
+++ b/src/soc/amd/common/block/lpc/espi_util.c
@@ -945,6 +945,8 @@ int espi_setup(void)
uint32_t slave_caps;
const struct espi_config *cfg = espi_get_config();
+ printk(BIOS_SPEW, "Initializing ESPI.\n");
+
espi_write32(ESPI_GLOBAL_CONTROL_0, ESPI_AL_STOP_EN);
espi_write32(ESPI_GLOBAL_CONTROL_1, ESPI_RGCMD_INT(23) | ESPI_ERR_INT_SMI);
espi_write32(ESPI_SLAVE0_INT_EN, 0);
@@ -1036,5 +1038,7 @@ int espi_setup(void)
espi_write32(ESPI_GLOBAL_CONTROL_1,
espi_read32(ESPI_GLOBAL_CONTROL_1) | ESPI_BUS_MASTER_EN);
+ printk(BIOS_SPEW, "Finished initializing ESPI.\n");
+
return 0;
}