summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/pmc
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2023-02-28 06:15:02 +0000
committerFelix Held <felix-coreboot@felixheld.de>2023-03-09 13:38:07 +0000
commitfe514552dd72af2e855cf37eecd1ed59dd41ba61 (patch)
tree2553263ca9d1ec98337abe99b1c8e8105df2ba4c /src/soc/intel/common/block/pmc
parent8fd957b4b82a5ca36258c580bb34518a3e81dd1c (diff)
soc/intel: Update API name `pmc_send_bios_reset_pci_enum_done`
This patch updates PMC API name from `pmc_send_pci_enum_done` to `pmc_send_bios_reset_pci_enum_done` to inform PMC IPC about BIOS done is also set along with PMC enumeration being done. BUG=b:270942083 TEST=Able to build and boot google/rex. Change-Id: I1cf8cb1ecadeb68c109be6b0e751a3f2c448ae4f Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/73332 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sukumar Ghorai <sukumar.ghorai@intel.com> Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Diffstat (limited to 'src/soc/intel/common/block/pmc')
-rw-r--r--src/soc/intel/common/block/pmc/pmclib.c4
1 files changed, 3 insertions, 1 deletions
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)