summaryrefslogtreecommitdiff
path: root/src/soc/intel/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/common')
-rw-r--r--src/soc/intel/common/block/include/intelblocks/pmclib.h7
-rw-r--r--src/soc/intel/common/block/pmc/pmclib.c4
2 files changed, 8 insertions, 3 deletions
diff --git a/src/soc/intel/common/block/include/intelblocks/pmclib.h b/src/soc/intel/common/block/include/intelblocks/pmclib.h
index 11ab86d47a..d3485a5998 100644
--- a/src/soc/intel/common/block/include/intelblocks/pmclib.h
+++ b/src/soc/intel/common/block/include/intelblocks/pmclib.h
@@ -28,8 +28,11 @@ enum pch_pmc_xtal {
*/
enum pch_pmc_xtal pmc_get_xtal_freq(void);
-/* pmc_send_pci_enum_done() - send PMC IPC to inform PCI enumeration is done. */
-void pmc_send_pci_enum_done(void);
+/*
+ * pmc_send_pci_enum_done() - send PMC IPC to inform both BIOS Reset
+ * and PCI enumeration is done.
+ */
+void pmc_send_bios_reset_pci_enum_done(void);
/* Forward declare the power state struct here */
struct chipset_power_state;
diff --git a/src/soc/intel/common/block/pmc/pmclib.c b/src/soc/intel/common/block/pmc/pmclib.c
index 0b041cfe2f..5a8cd3b7b7 100644
--- a/src/soc/intel/common/block/pmc/pmclib.c
+++ b/src/soc/intel/common/block/pmc/pmclib.c
@@ -24,6 +24,7 @@
#define PMC_IPC_BIOS_RST_COMPLETE 0xd0
#define PMC_IPC_BIOS_RST_SUBID_PCI_ENUM_DONE 0
+#define PMC_IPC_BIOS_RST_CMPL_STS_PCI_ENUM BIT(0)
static struct chipset_power_state power_state;
@@ -854,12 +855,13 @@ enum pch_pmc_xtal pmc_get_xtal_freq(void)
}
}
-void pmc_send_pci_enum_done(void)
+void pmc_send_bios_reset_pci_enum_done(void)
{
struct pmc_ipc_buffer req = { 0 };
struct pmc_ipc_buffer rsp;
uint32_t cmd;
+ req.buf[0] = PMC_IPC_BIOS_RST_CMPL_STS_PCI_ENUM;
cmd = pmc_make_ipc_cmd(PMC_IPC_BIOS_RST_COMPLETE,
PMC_IPC_BIOS_RST_SUBID_PCI_ENUM_DONE, 0);
if (pmc_send_ipc_cmd(cmd, &req, &rsp) != CB_SUCCESS)