From: Bin Meng Date: Fri, 21 Apr 2017 14:24:45 +0000 (-0700) Subject: x86: acpi: Turn on ACPI mode for S3 X-Git-Tag: v2017.07-rc1~254^2~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=82a5648f5604709ae405b7faf23e68dc700b58d9;p=u-boot x86: acpi: Turn on ACPI mode for S3 Before jumping to OS waking up vector, we need turn on ACPI mode for S3, just like what we do for a normal boot. Signed-off-by: Bin Meng Reviewed-by: Simon Glass Tested-by: Stefan Roese --- diff --git a/arch/x86/lib/acpi_s3.c b/arch/x86/lib/acpi_s3.c index e5cc3b0766..0b62b75908 100644 --- a/arch/x86/lib/acpi_s3.c +++ b/arch/x86/lib/acpi_s3.c @@ -24,6 +24,9 @@ void acpi_resume(struct acpi_fadt *fadt) { void *wake_vec; + /* Turn on ACPI mode for S3 */ + enter_acpi_mode(fadt->pm1a_cnt_blk); + wake_vec = acpi_find_wakeup_vector(fadt); post_code(POST_OS_RESUME);