summaryrefslogtreecommitdiff
path: root/src/mainboard/amd/birman
diff options
context:
space:
mode:
authorZheng Bao <fishbaozi@gmail.com>2023-02-11 15:27:08 +0800
committerFelix Held <felix-coreboot@felixheld.de>2023-02-16 14:02:42 +0000
commit5e9e7bff4b07cc23874ff07dd291ac09694baeca (patch)
tree2a68e62aaca48b29425173c0f61f8ce61b8ca3db /src/mainboard/amd/birman
parentdb0946239fc5e7267c8cee7867ce85cbc5d313b4 (diff)
mb/amd/birman&mayan: Use relative address as EC FW location
When the flash size is over 16M, the absolute address could be lager than 16M, which can not be taken by CBFS. For the relative address, it is more flexible. This is one of series of patches to support 32/64M flash. BUG=b:255374782 TEST=binary identical test on birman and mayan when CONFIG_BIRMAN_HAVE_MCHP_FW and CONFIG_MAYAN_HAVE_MCHP_FW are set as y. Change-Id: I65be3039cd3449bfb481ad87281b72e88a58bd45 Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/72960 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Diffstat (limited to 'src/mainboard/amd/birman')
-rw-r--r--src/mainboard/amd/birman/Makefile.inc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mainboard/amd/birman/Makefile.inc b/src/mainboard/amd/birman/Makefile.inc
index 6255ff07c7..f4a5924555 100644
--- a/src/mainboard/amd/birman/Makefile.inc
+++ b/src/mainboard/amd/birman/Makefile.inc
@@ -21,14 +21,9 @@ ifeq ($(CONFIG_BIRMAN_HAVE_MCHP_FW),y)
$(call add_intermediate, add_mchp_fw)
$(CBFSTOOL) $(obj)/coreboot.pre write -r EC -f $(CONFIG_BIRMAN_MCHP_SIG_FILE) --fill-upward
-# calculate the absolute position from the config offset
-BIRMAN_EC_POSITION=$(call int-add, \
- $(call int-subtract, 0xffffffff \
- $(CONFIG_ROM_SIZE)) $(CONFIG_BIRMAN_MCHP_FW_OFFSET) 1)
-
cbfs-files-y += apu/ecfw
apu/ecfw-file := $(CONFIG_BIRMAN_MCHP_FW_FILE)
-apu/ecfw-position := $(BIRMAN_EC_POSITION)
+apu/ecfw-position := $(CONFIG_BIRMAN_MCHP_FW_OFFSET)
apu/ecfw-type := raw
else