coreboot-kgpe-d16/util/amdfwtool
Zheng Bao 1a0c99f55d amdfwtool: Support firmware offsets of larger than 16MiB
The mapped windows is up to 16M. Even if the flash size is 32MB, it is
not mapped at 0xFE000000.

So using "0xFFFFFFFF - rom_size + 1" to get the "rom_base_address" can
only explain well when rom_size is less or equal to 16MB. For larger
size, it is not physically correct (Even though it can get expected
result).

If the flash size is larger than 16M, we assume the given addresses
are already relative ones. So we don't need the physical base address
any more.

This commit is part of a series of patches to support 32/64M flash.
BUG=b:255374782

Change-Id: I9eea45f0be45a959c4150030e7e213923510ad68
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72959
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
2023-09-26 16:20:45 +00:00
..
.gitignore
Makefile util/amdfwtool: Introduce support for Hash Table v2 2023-08-04 20:51:53 +00:00
Makefile.inc util/amdfwtool: Introduce support for Hash Table v2 2023-08-04 20:51:53 +00:00
amdfwread.c
amdfwtool.c amdfwtool: Support firmware offsets of larger than 16MiB 2023-09-26 16:20:45 +00:00
amdfwtool.h util/amdfwtool: Add Genoa support 2023-08-21 12:11:57 +00:00
data_parse.c amdfwtool: Add FW type FUSE_CHAIN in the config file 2023-09-05 12:30:16 +00:00
description.md
handle_file.c amdfwtool: Move some funtions to other categorized source files 2023-03-24 14:04:31 +00:00
signed_psp.c util/amdfwtool: Introduce support for Hash Table v2 2023-08-04 20:51:53 +00:00