soc/amd/common: Redefine EFS_OFFSET

The EFS_OFFSET is the relative address to flash base. We can not
assume the flash size is 16M.

The change will affect only Gardenia and Pademelon whose flash size
are 8M.

Change-Id: Ia68032db05264c55d333deec588ad9690a4ed2c1
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76764
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Zheng Bao 2023-07-27 17:14:41 +08:00 committed by Fred Reitberger
parent 340023fd28
commit 63c952a66c
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
#include <types.h> #include <types.h>
#define EFS_OFFSET (0xffffff - (0x80000 << CONFIG_AMD_FWM_POSITION_INDEX) + 0x20000 + 1) #define EFS_OFFSET (CONFIG_ROM_SIZE - (0x80000 << CONFIG_AMD_FWM_POSITION_INDEX) + 0x20000)
#define EMBEDDED_FW_SIGNATURE 0x55aa55aa #define EMBEDDED_FW_SIGNATURE 0x55aa55aa