diff options
author | Angel Pons <th3fanbus@gmail.com> | 2021-03-30 21:39:49 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-04-06 06:46:41 +0000 |
commit | 736a1028fbaef97d32221cadb1f512c9a8960a76 (patch) | |
tree | 42885bde373212d8efa221e4b44c5d5204fce786 | |
parent | f0fd3e2269b221324a38acfa27d629e44089d10a (diff) | |
download | coreboot-736a1028fbaef97d32221cadb1f512c9a8960a76.tar.gz coreboot-736a1028fbaef97d32221cadb1f512c9a8960a76.tar.bz2 coreboot-736a1028fbaef97d32221cadb1f512c9a8960a76.zip |
drivers/intel/fsp1_1: Drop dead MMA code
The only FSP 1.1 platform with MMA support is Skylake. As it now uses
Kaby Lake FSP 2.0, this code is no longer useful. Drop it.
Change-Id: I819c3152bdea0fdad629793d96136ef134429fbd
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51951
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
-rw-r--r-- | src/drivers/intel/fsp1_1/Makefile.inc | 2 | ||||
-rw-r--r-- | src/drivers/intel/fsp1_1/mma_core.c | 38 |
2 files changed, 0 insertions, 40 deletions
diff --git a/src/drivers/intel/fsp1_1/Makefile.inc b/src/drivers/intel/fsp1_1/Makefile.inc index 425923725c51..4b8e0a81f01a 100644 --- a/src/drivers/intel/fsp1_1/Makefile.inc +++ b/src/drivers/intel/fsp1_1/Makefile.inc @@ -16,14 +16,12 @@ romstage-y += fsp_util.c romstage-y += hob.c romstage-y += raminit.c romstage-y += romstage.c -romstage-$(CONFIG_MMA) += mma_core.c ramstage-y += fsp_relocate.c ramstage-y += fsp_util.c ramstage-y += hob.c ramstage-y += ramstage.c ramstage-$(CONFIG_INTEL_GMA_ADD_VBT) += vbt.c -ramstage-$(CONFIG_MMA) += mma_core.c CPPFLAGS_common += -Isrc/drivers/intel/fsp1_1/include diff --git a/src/drivers/intel/fsp1_1/mma_core.c b/src/drivers/intel/fsp1_1/mma_core.c deleted file mode 100644 index 6e503739ef98..000000000000 --- a/src/drivers/intel/fsp1_1/mma_core.c +++ /dev/null @@ -1,38 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#include <console/console.h> -#include <fsp/util.h> -#include <fsp/romstage.h> -#include <fsp/soc_binding.h> - -#define FSP_MMA_RESULTS_GUID { 0x8f4e928, 0xf5f, 0x46d4, \ - { 0x84, 0x10, 0x47, 0x9f, 0xda, 0x27, 0x9d, 0xb6 } } - -int fsp_locate_mma_results(const void **mma_hob, size_t *mma_hob_size) -{ - const void *mma_hob_start; - const EFI_GUID mma_results_guid = FSP_MMA_RESULTS_GUID; - - mma_hob_start = get_first_guid_hob(&mma_results_guid); - if (!mma_hob_start) - return -1; - *mma_hob = GET_GUID_HOB_DATA(mma_hob_start); - *mma_hob_size = GET_HOB_LENGTH(mma_hob); - - if (!(*mma_hob_size) || !(*mma_hob)) - return -1; - return 0; -} - -void setup_mma(MEMORY_INIT_UPD *memory_cfg) -{ - struct mma_config_param mma_cfg; - - if (mma_locate_param(&mma_cfg)) { - printk(BIOS_DEBUG, "MMA: set up failed\n"); - return; - } - - soc_update_memory_params_for_mma(memory_cfg, &mma_cfg); - printk(BIOS_DEBUG, "MMA: set up completed successfully\n"); -} |