Arthur Heymans has uploaded a new patch set (#3). ( https://review.coreboot.org/c/coreboot/+/79880?usp=email )
Change subject: sb/intel/common: Get memory map from SPI controller ......................................................................
sb/intel/common: Get memory map from SPI controller
Instead of always assuming that the top of a flash matches the top of 4G use the real memory map that's configured in the IFD and is reflected in the SPI registers.
One possible use case is to cleanly generate images for some hacks rather than having to apply some 'dd' trickery: e.g. on HP Sure Start a part of the flash is checked by EC.
UNTESTED. This might break some hacks people use to work around SPI locked images by modifying the IFD when booted with a recovery strap pulled. Those would also need a specifically crafted FMAP.
Signed-off-by: Arthur Heymans arthur@aheymans.xyz Change-Id: I5f31c175345ec3efab02255a7063054eb0ad29e4 --- M src/southbridge/intel/common/Kconfig.common M src/southbridge/intel/common/Makefile.inc M src/southbridge/intel/common/rcba.h A src/southbridge/intel/common/spi_memmap.c 4 files changed, 90 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/80/79880/3