Marshall Dawson has uploaded this change for review. ( https://review.coreboot.org/22952
Change subject: WIP soc/amd/common: Move LateInit earlier ......................................................................
WIP soc/amd/common: Move LateInit earlier
Move agesawrapper_post_device() to the entry of BS_POST_DEVICE. A subsequent patch will use the new drivers/mrc_cache, and the latest it may write to flash is the exit of BS_POST_DEVICE. To ensure the S3 data is stashed in time, the calls are moved earlier.
Change-Id: Ia00c7b53e010679f51bd7f78f67382941bac4b33 Signed-off-by: Marshall Dawson marshalldawson3rd@gmail.com --- M src/soc/amd/common/block/pi/amd_late_init.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/52/22952/1
diff --git a/src/soc/amd/common/block/pi/amd_late_init.c b/src/soc/amd/common/block/pi/amd_late_init.c index 3eb3674..5f4be93 100644 --- a/src/soc/amd/common/block/pi/amd_late_init.c +++ b/src/soc/amd/common/block/pi/amd_late_init.c @@ -36,5 +36,5 @@ do_agesawrapper(agesawrapper_amdS3Save, "amdS3Save"); }
-BOOT_STATE_INIT_ENTRY(BS_POST_DEVICE, BS_ON_EXIT, +BOOT_STATE_INIT_ENTRY(BS_POST_DEVICE, BS_ON_ENTRY, agesawrapper_post_device, NULL);