summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/alderlake/finalize.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/soc/intel/alderlake/finalize.c b/src/soc/intel/alderlake/finalize.c
index 6e2406ae53..c821e25769 100644
--- a/src/soc/intel/alderlake/finalize.c
+++ b/src/soc/intel/alderlake/finalize.c
@@ -13,6 +13,7 @@
#include <cpu/x86/smm.h>
#include <device/mmio.h>
#include <device/pci.h>
+#include <intelblocks/cse.h>
#include <intelblocks/lpc_lib.h>
#include <intelblocks/pcr.h>
#include <intelblocks/pmclib.h>
@@ -90,6 +91,23 @@ static void sa_finalize(void)
sa_lock_pam();
}
+static void heci_finalize(void)
+{
+ unsigned int cse_dev[] = {
+ PCH_DEVFN_CSE,
+ PCH_DEVFN_CSE_2,
+ PCH_DEVFN_CSE_3,
+ PCH_DEVFN_CSE_4
+ };
+
+ for (int i = 0; i < ARRAY_SIZE(cse_dev); i++) {
+ if (!is_cse_devfn_visible(cse_dev[i]))
+ continue;
+
+ set_cse_device_state(cse_dev[i], DEV_IDLE);
+ }
+}
+
static void soc_finalize(void *unused)
{
printk(BIOS_DEBUG, "Finalizing chipset.\n");
@@ -98,6 +116,7 @@ static void soc_finalize(void *unused)
apm_control(APM_CNT_FINALIZE);
tbt_finalize();
sa_finalize();
+ heci_finalize();
/* Indicate finalize step with post code */
post_code(POST_OS_BOOT);