summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenji Chen <kenji.chen@intel.com>2014-11-13 14:44:46 -0800
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-04-10 20:03:23 +0200
commit89f6388e8ca170be7aab143b39bda68798954e08 (patch)
tree95ad5a379df65cfb188be6d812c704180e02bb3a
parent432762410e74b94a17be6e1027592c9d6ced8610 (diff)
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 <kenji.chen@intel.com> Change-Id: If400df94f970a55f3921a5a2df24038d28beb489 Signed-off-by: Stefan Reinauer <reinauer@chromium.org> Original-Commit-Id: 40e719618ec101235cdb1755933e719abd873239 Original-Change-Id: Ia042ea8c63c2306e9d6a80d8efa66c4fc0722d85 Original-Reviewed-on: https://chromium-review.googlesource.com/229615 Original-Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Original-Commit-Queue: Kenji Chen <kenji.chen@intel.com> Original-Tested-by: Kenji Chen <kenji.chen@intel.com> Reviewed-on: http://review.coreboot.org/9475 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
-rw-r--r--src/soc/intel/broadwell/refcode.c5
1 files changed, 4 insertions, 1 deletions
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");