From d4833a649951d621f0819ab41440428b40bb61f3 Mon Sep 17 00:00:00 2001 From: Jamie Ryu Date: Fri, 16 Aug 2024 00:26:44 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/83939 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik --- src/soc/intel/common/block/pmc/Makefile.mk | 1 + src/soc/intel/common/block/pmc/pmc_ipc.c | 2 ++ 2 files changed, 3 insertions(+) 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 -- cgit v1.2.3