aboutsummaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2021-04-02 10:18:25 -0600
committerRaul Rangel <rrangel@chromium.org>2021-04-05 15:02:10 +0000
commit66c52ffb2bed60a9002755b5cf7f40ef25b3a1a2 (patch)
tree43d88d77e2ddcd0a6ba37b14b48974a2b8428b87 /src/soc
parentb92383a8a5adc3be5a18477c559badad3de01af8 (diff)
soc/amd/common/espi: Clear DNCMD_COMPLETE on completion
Tidy up the interrupt status. This will leave SLAVE0_INT_STS = 0. BUG=b:183524609 TEST=Boot guybrush to OS Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: I950cfb81521e35758c120a482670cfdb924201d2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52056 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/amd/common/block/lpc/espi_util.c2
1 files changed, 2 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 fe49fe802c..c7269d0a4c 100644
--- a/src/soc/amd/common/block/lpc/espi_util.c
+++ b/src/soc/amd/common/block/lpc/espi_util.c
@@ -519,6 +519,8 @@ static int espi_send_command(const struct espi_cmd *cmd)
return -1;
}
+ espi_write32(ESPI_SLAVE0_INT_STS, ESPI_STATUS_DNCMD_COMPLETE);
+
return 0;
}