soc/amd/common/block/apob/apob_cache: use APOB cache size from FMAP
Also add the Makefile dependency on the fmap_config.h file to make sure that this file already exists when it's included. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I540ea2c14fd187845efd3c0c8c1e4b8f82c8cac3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62130 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
This commit is contained in:
parent
14976dbed0
commit
63226901c7
|
@ -1,4 +1,8 @@
|
|||
ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_APOB),y)
|
||||
romstage-y += apob_cache.c
|
||||
ramstage-y += apob_cache.c
|
||||
|
||||
$(call src-to-obj,romstage,$(dir)/apob_cache.c) : $(obj)/fmap_config.h
|
||||
$(call src-to-obj,ramstage,$(dir)/apob_cache.c) : $(obj)/fmap_config.h
|
||||
|
||||
endif # CONFIG_SOC_AMD_COMMON_BLOCK_APOB
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include <commonlib/region.h>
|
||||
#include <console/console.h>
|
||||
#include <fmap.h>
|
||||
#include <fmap_config.h>
|
||||
#include <spi_flash.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
@ -16,8 +17,7 @@
|
|||
#include <timestamp.h>
|
||||
|
||||
#define DEFAULT_MRC_CACHE "RW_MRC_CACHE"
|
||||
/* PSP requires this value to be 64KiB */
|
||||
#define DEFAULT_MRC_CACHE_SIZE 0x10000
|
||||
#define DEFAULT_MRC_CACHE_SIZE FMAP_SECTION_RW_MRC_CACHE_SIZE
|
||||
|
||||
#if !CONFIG_PSP_APOB_DRAM_ADDRESS
|
||||
#error Incorrect APOB configuration setting(s)
|
||||
|
|
Loading…
Reference in New Issue