From c00457d065a0b57e8e2e8abc9318fc6e1198ee64 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Mon, 11 Feb 2013 21:15:12 -0600 Subject: romstage_handoff: add s3_resume field Provide a field in the romstage_handoff structure to indicate if the current boot is an ACPI S3 wake boot. There are currently quite a few non-standardized ways of passing this knowledge to ramstage from romstage. Many utilize stashing magic numbers in device-specific registers. The addition of this field adds a more formalized method passing along this information. However, it still requires the romstage chipset code to initialize this field. In short, this change does not make this a hard requirement for ramstage. Change-Id: Ia819c0ceed89ed427ef576a036fa870eb7cf57bc Signed-off-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/2796 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/include/romstage_handoff.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/romstage_handoff.h') diff --git a/src/include/romstage_handoff.h b/src/include/romstage_handoff.h index 13dc9797bb..c20b2614bd 100644 --- a/src/include/romstage_handoff.h +++ b/src/include/romstage_handoff.h @@ -31,6 +31,8 @@ struct romstage_handoff { /* This indicates to the ramstage to reserve a chunk of memory. */ uint32_t reserve_base; uint32_t reserve_size; + /* Inidicate if the current boot is an S3 resume. */ + uint32_t s3_resume; }; #if defined(__PRE_RAM__) -- cgit v1.2.3