soc/amd/picasso: Move Type 17 DMI generation to common

Move dmi.c code to common/fsp to be shared among different SOCs.

BUG=b:184124605

Change-Id: I46071556bbbbf6435d9e3724bba19e102bd02535
Signed-off-by: Nikolai Vyssotski <nikolai.vyssotski@amd.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52746
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Nikolai Vyssotski 2021-04-28 18:09:29 -05:00 committed by Felix Held
parent bdb08188cb
commit a289cdd59c
5 changed files with 6 additions and 2 deletions

View File

@ -12,6 +12,9 @@ source "src/soc/amd/common/block/*/Kconfig"
if PLATFORM_USES_FSP2_0 if PLATFORM_USES_FSP2_0
config SOC_AMD_COMMON_FSP_DMI_TABLES
bool
source "src/soc/amd/common/fsp/*/Kconfig" source "src/soc/amd/common/fsp/*/Kconfig"
endif # PLATFORM_USES_FSP2_0 endif # PLATFORM_USES_FSP2_0

View File

@ -2,6 +2,7 @@ ifeq ($(CONFIG_PLATFORM_USES_FSP2_0),y)
romstage-y += fsp_reset.c romstage-y += fsp_reset.c
ramstage-y += fsp_reset.c ramstage-y += fsp_reset.c
ramstage-$(CONFIG_HAVE_ACPI_TABLES) += fsp-acpi.c ramstage-$(CONFIG_HAVE_ACPI_TABLES) += fsp-acpi.c
ramstage-$(CONFIG_SOC_AMD_COMMON_FSP_DMI_TABLES) += dmi.c
subdirs-y += ./* subdirs-y += ./*

View File

@ -13,7 +13,7 @@
#include <bootstate.h> #include <bootstate.h>
#include <lib.h> #include <lib.h>
#include <dimm_info_util.h> #include <dimm_info_util.h>
#include <vendorcode/amd/fsp/picasso/dmi_info.h> #include <dmi_info.h>
#include <device/dram/ddr4.h> #include <device/dram/ddr4.h>
/** /**

View File

@ -55,6 +55,7 @@ config CPU_SPECIFIC_OPTIONS
select SOC_AMD_COMMON_BLOCK_TSC_FAM17H_19H select SOC_AMD_COMMON_BLOCK_TSC_FAM17H_19H
select SOC_AMD_COMMON_BLOCK_UART select SOC_AMD_COMMON_BLOCK_UART
select SOC_AMD_COMMON_BLOCK_UCODE select SOC_AMD_COMMON_BLOCK_UCODE
select SOC_AMD_COMMON_FSP_DMI_TABLES
select PROVIDES_ROM_SHARING select PROVIDES_ROM_SHARING
select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH
select PARALLEL_MP_AP_WORK select PARALLEL_MP_AP_WORK

View File

@ -50,7 +50,6 @@ ramstage-y += fsp_s_params.c
ramstage-y += graphics.c ramstage-y += graphics.c
ramstage-y += pcie_gpp.c ramstage-y += pcie_gpp.c
ramstage-y += xhci.c ramstage-y += xhci.c
ramstage-y += dmi.c
smm-y += smihandler.c smm-y += smihandler.c
ifeq ($(CONFIG_DEBUG_SMI),y) ifeq ($(CONFIG_DEBUG_SMI),y)