soc/amd/phoenix/Makefile.inc: Pass APOB_NV address as offset
Pass the APOB NV address as a flash offset instead of x86 address. TEST=boot birman and verify APOB_NV is working Signed-off-by: Fred Reitberger <reitbergerfred@gmail.com> Change-Id: I0f710f12cc5d933a75840dbce1c4bad0c2ea04cc Reviewed-on: https://review.coreboot.org/c/coreboot/+/76162 Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
37c1f51c7c
commit
41a162b7a8
|
@ -131,13 +131,17 @@ PSP_BIOSBIN_DEST=$(shell $(READELF_bootblock) -Wl $(PSP_ELF_FILE) | grep LOAD |
|
||||||
# type = 0x63 - construct APOB NV base/size from flash map
|
# type = 0x63 - construct APOB NV base/size from flash map
|
||||||
# The flashmap section used for this is expected to be named RW_MRC_CACHE
|
# The flashmap section used for this is expected to be named RW_MRC_CACHE
|
||||||
APOB_NV_SIZE=$(call get_fmap_value,FMAP_SECTION_RW_MRC_CACHE_SIZE)
|
APOB_NV_SIZE=$(call get_fmap_value,FMAP_SECTION_RW_MRC_CACHE_SIZE)
|
||||||
APOB_NV_BASE=$(call get_fmap_value,FMAP_SECTION_RW_MRC_CACHE_START)
|
APOB_NV_BASE=$(shell printf "%#x" $(call int-subtract, \
|
||||||
|
$(call get_fmap_value,FMAP_SECTION_RW_MRC_CACHE_START) \
|
||||||
|
$(call get_fmap_value,FMAP_SECTION_FLASH_START)))
|
||||||
|
|
||||||
ifeq ($(CONFIG_HAS_RECOVERY_MRC_CACHE),y)
|
ifeq ($(CONFIG_HAS_RECOVERY_MRC_CACHE),y)
|
||||||
# On boards with recovery MRC cache, point type 0x63 entry to RECOVERY_MRC_CACHE.
|
# On boards with recovery MRC cache, point type 0x63 entry to RECOVERY_MRC_CACHE.
|
||||||
# Else use RW_MRC_CACHE. This entry will be added in the RO section.
|
# Else use RW_MRC_CACHE. This entry will be added in the RO section.
|
||||||
APOB_NV_RO_SIZE=$(call get_fmap_value,FMAP_SECTION_RECOVERY_MRC_CACHE_SIZE)
|
APOB_NV_RO_SIZE=$(call get_fmap_value,FMAP_SECTION_RECOVERY_MRC_CACHE_SIZE)
|
||||||
APOB_NV_RO_BASE=$(call get_fmap_value,FMAP_SECTION_RECOVERY_MRC_CACHE_START)
|
APOB_NV_RO_BASE=$(shell printf "%#x" $(call int-subtract, \
|
||||||
|
$(call get_fmap_value,FMAP_SECTION_RECOVERY_MRC_CACHE_START) \
|
||||||
|
$(call get_fmap_value,FMAP_SECTION_FLASH_START)))
|
||||||
else
|
else
|
||||||
APOB_NV_RO_SIZE=$(APOB_NV_SIZE)
|
APOB_NV_RO_SIZE=$(APOB_NV_SIZE)
|
||||||
APOB_NV_RO_BASE=$(APOB_NV_BASE)
|
APOB_NV_RO_BASE=$(APOB_NV_BASE)
|
||||||
|
|
Loading…
Reference in New Issue