]> git.sur5r.net Git - u-boot/commitdiff
x86: acpi: Turn on ACPI mode for S3
authorBin Meng <bmeng.cn@gmail.com>
Fri, 21 Apr 2017 14:24:45 +0000 (07:24 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 17 May 2017 09:11:46 +0000 (17:11 +0800)
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 <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Stefan Roese <sr@denx.de>
arch/x86/lib/acpi_s3.c

index e5cc3b07664984845e0c61da1ac973de608c3970..0b62b759087aee644e42454dee113a34c64ecf2d 100644 (file)
@@ -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);