diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2017-04-21 07:24:35 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2017-05-17 17:11:46 +0800 |
commit | 2b2d666f9caca189e4014f8e23088b0afc360e22 (patch) | |
tree | 40b5d45e197afc76bf00774b025c5f0e00835928 /arch/x86/include/asm/acpi_s3.h | |
parent | 7d0d2efef82dcb88030a960aef09290e6e49f771 (diff) | |
download | u-boot-2b2d666f9caca189e4014f8e23088b0afc360e22.tar.gz u-boot-2b2d666f9caca189e4014f8e23088b0afc360e22.tar.xz u-boot-2b2d666f9caca189e4014f8e23088b0afc360e22.zip |
x86: acpi: Add wake up assembly stub
This adds a wake up stub before jumping to OS wake up vector.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'arch/x86/include/asm/acpi_s3.h')
-rw-r--r-- | arch/x86/include/asm/acpi_s3.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/include/asm/acpi_s3.h b/arch/x86/include/asm/acpi_s3.h index 10cedde39a..a06466c01e 100644 --- a/arch/x86/include/asm/acpi_s3.h +++ b/arch/x86/include/asm/acpi_s3.h @@ -7,6 +7,8 @@ #ifndef __ASM_ACPI_S3_H__ #define __ASM_ACPI_S3_H__ +#define WAKEUP_BASE 0x600 + /* PM1_STATUS register */ #define WAK_STS (1 << 15) #define PCIEXPWAK_STS (1 << 14) @@ -27,6 +29,11 @@ #define SLP_TYP_S4 6 #define SLP_TYP_S5 7 +#ifndef __ASSEMBLY__ + +extern char __wakeup[]; +extern int __wakeup_size; + enum acpi_sleep_state { ACPI_S0, ACPI_S1, @@ -92,4 +99,6 @@ enum acpi_sleep_state chipset_prev_sleep_state(void); */ void chipset_clear_sleep_state(void); +#endif /* __ASSEMBLY__ */ + #endif /* __ASM_ACPI_S3_H__ */ |