Felix Held has uploaded a new patch set (#6) to the change originally created by Marshall Dawson. ( https://review.coreboot.org/c/coreboot/+/38700 )
Change subject: drivers/intel/fsp2_0: Add callback after non-XIP FSP-M load ......................................................................
drivers/intel/fsp2_0: Add callback after non-XIP FSP-M load
fsp_memory_init() is capable of executing FSP-M either in place or copy it before running it in the non-XIP case.
Add a weak function to the non-XIP path that the SoC code can implement to get the base address and size of the memory region FSP-M got copied to. This function will be called right after FSP-M got copied to the memory region. This is needed on non-XIP platforms where the FSP-M image isn't written to CAR, but to DRAM, since the SoC code needs to mark the region as reserved, so that the S3 resume path doesn't clobber any memory regions used by the OS. This common code change is however not specific to platforms that are non-XIP & non-CAR.
Signed-off-by: Marshall Dawson marshalldawson3rd@gmail.com Signed-off-by: Felix Held felix-coreboot@felixheld.de Change-Id: I04b2fff4074b720d1910ff21e1a1f841cfea8efb --- M src/drivers/intel/fsp2_0/include/fsp/api.h M src/drivers/intel/fsp2_0/memory_init.c 2 files changed, 11 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/00/38700/6