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>
This commit is contained in:
parent
8fd957b4b8
commit
fe514552dd
|
@ -38,8 +38,8 @@ static void pmc_lockdown_cfg(int chipset_lockdown)
|
||||||
PM_CFG_XRAM_READ_DISABLE);
|
PM_CFG_XRAM_READ_DISABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Send PMC IPC to inform about PCI enumeration done */
|
/* Send PMC IPC to inform about both BIOS Reset and PCI enumeration done */
|
||||||
pmc_send_pci_enum_done();
|
pmc_send_bios_reset_pci_enum_done();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pch_lockdown_cfg(void)
|
static void pch_lockdown_cfg(void)
|
||||||
|
|
|
@ -28,8 +28,11 @@ enum pch_pmc_xtal {
|
||||||
*/
|
*/
|
||||||
enum pch_pmc_xtal pmc_get_xtal_freq(void);
|
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 */
|
/* Forward declare the power state struct here */
|
||||||
struct chipset_power_state;
|
struct chipset_power_state;
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
#define PMC_IPC_BIOS_RST_COMPLETE 0xd0
|
#define PMC_IPC_BIOS_RST_COMPLETE 0xd0
|
||||||
#define PMC_IPC_BIOS_RST_SUBID_PCI_ENUM_DONE 0
|
#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;
|
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 req = { 0 };
|
||||||
struct pmc_ipc_buffer rsp;
|
struct pmc_ipc_buffer rsp;
|
||||||
uint32_t cmd;
|
uint32_t cmd;
|
||||||
|
|
||||||
|
req.buf[0] = PMC_IPC_BIOS_RST_CMPL_STS_PCI_ENUM;
|
||||||
cmd = pmc_make_ipc_cmd(PMC_IPC_BIOS_RST_COMPLETE,
|
cmd = pmc_make_ipc_cmd(PMC_IPC_BIOS_RST_COMPLETE,
|
||||||
PMC_IPC_BIOS_RST_SUBID_PCI_ENUM_DONE, 0);
|
PMC_IPC_BIOS_RST_SUBID_PCI_ENUM_DONE, 0);
|
||||||
if (pmc_send_ipc_cmd(cmd, &req, &rsp) != CB_SUCCESS)
|
if (pmc_send_ipc_cmd(cmd, &req, &rsp) != CB_SUCCESS)
|
||||||
|
|
|
@ -32,8 +32,8 @@ static void pmc_lockdown_cfg(int chipset_lockdown)
|
||||||
PM_CFG_XRAM_READ_DISABLE);
|
PM_CFG_XRAM_READ_DISABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Send PMC IPC to inform about PCI enumeration done */
|
/* Send PMC IPC to inform about both BIOS Reset and PCI enumeration done */
|
||||||
pmc_send_pci_enum_done();
|
pmc_send_bios_reset_pci_enum_done();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void soc_die_lockdown_cfg(void)
|
static void soc_die_lockdown_cfg(void)
|
||||||
|
|
Loading…
Reference in New Issue