diff options
author | Nikolai Vyssotski <nikolai.vyssotski@amd.corp-partner.google.com> | 2021-04-28 18:09:29 -0500 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-06-13 09:55:30 +0000 |
commit | a289cdd59c7353830f81601d1a2fd5e34fddd7ad (patch) | |
tree | 8a5f73355a038640612739d32610b2b2ac8ed5c0 | |
parent | bdb08188cbe3fba85dbeadadc469aa604394c293 (diff) |
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>
-rw-r--r-- | src/soc/amd/common/Kconfig.common | 3 | ||||
-rw-r--r-- | src/soc/amd/common/fsp/Makefile.inc | 1 | ||||
-rw-r--r-- | src/soc/amd/common/fsp/dmi.c (renamed from src/soc/amd/picasso/dmi.c) | 2 | ||||
-rw-r--r-- | src/soc/amd/picasso/Kconfig | 1 | ||||
-rw-r--r-- | src/soc/amd/picasso/Makefile.inc | 1 |
5 files changed, 6 insertions, 2 deletions
diff --git a/src/soc/amd/common/Kconfig.common b/src/soc/amd/common/Kconfig.common index 805088159c..06fd8c5f75 100644 --- a/src/soc/amd/common/Kconfig.common +++ b/src/soc/amd/common/Kconfig.common @@ -12,6 +12,9 @@ source "src/soc/amd/common/block/*/Kconfig" if PLATFORM_USES_FSP2_0 +config SOC_AMD_COMMON_FSP_DMI_TABLES + bool + source "src/soc/amd/common/fsp/*/Kconfig" endif # PLATFORM_USES_FSP2_0 diff --git a/src/soc/amd/common/fsp/Makefile.inc b/src/soc/amd/common/fsp/Makefile.inc index ff25eba387..8a5cef5ffe 100644 --- a/src/soc/amd/common/fsp/Makefile.inc +++ b/src/soc/amd/common/fsp/Makefile.inc @@ -2,6 +2,7 @@ ifeq ($(CONFIG_PLATFORM_USES_FSP2_0),y) romstage-y += fsp_reset.c ramstage-y += fsp_reset.c ramstage-$(CONFIG_HAVE_ACPI_TABLES) += fsp-acpi.c +ramstage-$(CONFIG_SOC_AMD_COMMON_FSP_DMI_TABLES) += dmi.c subdirs-y += ./* diff --git a/src/soc/amd/picasso/dmi.c b/src/soc/amd/common/fsp/dmi.c index 69928ad002..b3eb5746db 100644 --- a/src/soc/amd/picasso/dmi.c +++ b/src/soc/amd/common/fsp/dmi.c @@ -13,7 +13,7 @@ #include <bootstate.h> #include <lib.h> #include <dimm_info_util.h> -#include <vendorcode/amd/fsp/picasso/dmi_info.h> +#include <dmi_info.h> #include <device/dram/ddr4.h> /** diff --git a/src/soc/amd/picasso/Kconfig b/src/soc/amd/picasso/Kconfig index 594ed7526f..9518f64331 100644 --- a/src/soc/amd/picasso/Kconfig +++ b/src/soc/amd/picasso/Kconfig @@ -55,6 +55,7 @@ config CPU_SPECIFIC_OPTIONS select SOC_AMD_COMMON_BLOCK_TSC_FAM17H_19H select SOC_AMD_COMMON_BLOCK_UART select SOC_AMD_COMMON_BLOCK_UCODE + select SOC_AMD_COMMON_FSP_DMI_TABLES select PROVIDES_ROM_SHARING select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH select PARALLEL_MP_AP_WORK diff --git a/src/soc/amd/picasso/Makefile.inc b/src/soc/amd/picasso/Makefile.inc index 214f76d812..e111186e59 100644 --- a/src/soc/amd/picasso/Makefile.inc +++ b/src/soc/amd/picasso/Makefile.inc @@ -50,7 +50,6 @@ ramstage-y += fsp_s_params.c ramstage-y += graphics.c ramstage-y += pcie_gpp.c ramstage-y += xhci.c -ramstage-y += dmi.c smm-y += smihandler.c ifeq ($(CONFIG_DEBUG_SMI),y) |