From 89f6388e8ca170be7aab143b39bda68798954e08 Mon Sep 17 00:00:00 2001 From: Kenji Chen Date: Thu, 13 Nov 2014 14:44:46 -0800 Subject: [PATCH] Broadwell: Set boot_mode of pei_data before running reference code Some actions are needed and some are not on the way resume from S3. BRANCH=master BUG=chrome-os-partner:33025,chrome-os-partner:33796 TEST=Built the image and confimed the boot_mode is correctly configured. Signed-off-by: Kenji Chen Change-Id: If400df94f970a55f3921a5a2df24038d28beb489 Signed-off-by: Stefan Reinauer Original-Commit-Id: 40e719618ec101235cdb1755933e719abd873239 Original-Change-Id: Ia042ea8c63c2306e9d6a80d8efa66c4fc0722d85 Original-Reviewed-on: https://chromium-review.googlesource.com/229615 Original-Reviewed-by: Duncan Laurie Original-Commit-Queue: Kenji Chen Original-Tested-by: Kenji Chen Reviewed-on: http://review.coreboot.org/9475 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/soc/intel/broadwell/refcode.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/soc/intel/broadwell/refcode.c b/src/soc/intel/broadwell/refcode.c index b7962f1cc6..6dec3b9158 100644 --- a/src/soc/intel/broadwell/refcode.c +++ b/src/soc/intel/broadwell/refcode.c @@ -167,7 +167,7 @@ static pei_wrapper_entry_t load_reference_code(void) void broadwell_run_reference_code(void) { - int ret; + int ret, dummy; struct pei_data pei_data; pei_wrapper_entry_t entry; @@ -175,6 +175,9 @@ void broadwell_run_reference_code(void) mainboard_fill_pei_data(&pei_data); broadwell_fill_pei_data(&pei_data); + pei_data.boot_mode = acpi_slp_type; + pei_data.saved_data = (void *) &dummy; + entry = load_reference_code(); if (entry == NULL) { printk(BIOS_ERR, "Reference code not found\n");