diff options
author | Jamie Ryu <jamie.m.ryu@intel.com> | 2024-08-16 00:26:44 -0700 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-08-21 16:14:31 +0000 |
commit | d4833a649951d621f0819ab41440428b40bb61f3 (patch) | |
tree | c2860240b0a2a1423707b5cff486e9d0db095f31 /src/soc/intel/common/block/pmc | |
parent | 8c6f785d5e5c9c9cd5b01a1a0342e28e372c0274 (diff) |
soc/intel/cmn/pmc: Add pmc_ipc to bootblock
This adds pmc_ipc to bootblock if SOC_INTEL_COMMON_BLOCK_PMC is enabled.
The good place to report SoC QDF can be report_cpu_info in bootblock.
QDF read is done by PMC IPC Command, so this adds pmc_ipc to bootblock
to enable calling pmc_dump_soc_qdf_info.
Change-Id: Id0391eae48fc53cd652acd09e6380ca6802eaf88
Signed-off-by: Jamie Ryu <jamie.m.ryu@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83939
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Diffstat (limited to 'src/soc/intel/common/block/pmc')
-rw-r--r-- | src/soc/intel/common/block/pmc/Makefile.mk | 1 | ||||
-rw-r--r-- | src/soc/intel/common/block/pmc/pmc_ipc.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/pmc/Makefile.mk b/src/soc/intel/common/block/pmc/Makefile.mk index e46d5ee7e0..bc60ce5fb9 100644 --- a/src/soc/intel/common/block/pmc/Makefile.mk +++ b/src/soc/intel/common/block/pmc/Makefile.mk @@ -7,5 +7,6 @@ ramstage-y += pmclib.c smm-y += pmclib.c verstage-y += pmclib.c postcar-y += pmclib.c +bootblock-$(CONFIG_PMC_IPC_ACPI_INTERFACE) += pmc_ipc.c ramstage-$(CONFIG_PMC_IPC_ACPI_INTERFACE) += pmc_ipc.c endif diff --git a/src/soc/intel/common/block/pmc/pmc_ipc.c b/src/soc/intel/common/block/pmc/pmc_ipc.c index 7c811aed44..65b3338591 100644 --- a/src/soc/intel/common/block/pmc/pmc_ipc.c +++ b/src/soc/intel/common/block/pmc/pmc_ipc.c @@ -97,6 +97,7 @@ enum cb_err pmc_send_ipc_cmd(uint32_t cmd, const struct pmc_ipc_buffer *wbuf, return CB_SUCCESS; } +#if ENV_RAMSTAGE void pmc_ipc_acpi_fill_ssdt(void) { const struct fieldlist ipcs_fields[] = { @@ -244,3 +245,4 @@ void pmc_ipc_acpi_set_pci_clock(unsigned int pcie_rp, unsigned int clock_pin, bo acpigen_write_dword(data[2]); acpigen_write_dword(data[3]); } +#endif |