summaryrefslogtreecommitdiff
path: root/src/soc/intel/skylake
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2021-04-12 17:23:55 -0700
committerJulius Werner <jwerner@chromium.org>2021-04-14 01:03:33 +0000
commit62fa9f3cf940f447e5b103aa31d95ea7dc257bb9 (patch)
tree145dd5e8a79cf2bfe582e171b5eda0cd5e23565a /src/soc/intel/skylake
parent43c9d709c75813276f166da8b6bc7bc220e5288d (diff)
intel: mma: Use new CBFS API
This patch changes the Intel MMA driver to use the new CBFS API. Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: Icc11d0c2a9ec1bd7a1d6af362f849dac16375433 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52282 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/skylake')
-rw-r--r--src/soc/intel/skylake/romstage/fsp_params.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/soc/intel/skylake/romstage/fsp_params.c b/src/soc/intel/skylake/romstage/fsp_params.c
index 6c6e2e62c5..294bf447ab 100644
--- a/src/soc/intel/skylake/romstage/fsp_params.c
+++ b/src/soc/intel/skylake/romstage/fsp_params.c
@@ -176,14 +176,10 @@ void soc_update_memory_params_for_mma(FSP_M_CONFIG *memory_cfg,
/* Boot media is memory mapped for Skylake and Kabylake (SPI). */
assert(CONFIG(BOOT_DEVICE_MEMORY_MAPPED));
- memory_cfg->MmaTestContentPtr =
- (uintptr_t) rdev_mmap_full(&mma_cfg->test_content);
- memory_cfg->MmaTestContentSize =
- region_device_sz(&mma_cfg->test_content);
- memory_cfg->MmaTestConfigPtr =
- (uintptr_t) rdev_mmap_full(&mma_cfg->test_param);
- memory_cfg->MmaTestConfigSize =
- region_device_sz(&mma_cfg->test_param);
+ memory_cfg->MmaTestContentPtr = (uintptr_t)mma_cfg->test_content;
+ memory_cfg->MmaTestContentSize = mma_cfg->test_content_size;
+ memory_cfg->MmaTestConfigPtr = (uintptr_t)mma_cfg->test_param;
+ memory_cfg->MmaTestConfigSize = mma_cfg->test_param_size;
memory_cfg->MrcFastBoot = 0x00;
memory_cfg->SaGv = 0x02;
}