diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2017-04-21 17:24:28 +0300 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2017-05-17 12:11:46 +0300 |
commit | 4372c111d49f1fa0fec0c8645c23a6266617e69d (patch) | |
tree | df5fe0870381eb09003f8435ef5ff6077ca55201 /arch/x86/Kconfig | |
parent | 4125bbcef6a998ce8580a1f5c53c8c93a56a125b (diff) | |
download | u-boot-4372c111d49f1fa0fec0c8645c23a6266617e69d.tar.xz |
x86: acpi: Add Kconfig option and header file for ACPI resume
This introduces a Kconfig option for ACPI S3 resume, as well as a
header file to include anything related to ACPI S3 resume.
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/Kconfig')
-rw-r--r-- | arch/x86/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 9ead3ebccf..b568852406 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -589,6 +589,18 @@ config GENERATE_ACPI_TABLE endmenu +config HAVE_ACPI_RESUME + bool "Enable ACPI S3 resume" + help + Select this to enable ACPI S3 resume. S3 is an ACPI-defined sleeping + state where all system context is lost except system memory. U-Boot + is responsible for restoring the machine state as it was before sleep. + It needs restore the memory controller, without overwriting memory + which is not marked as reserved. For the peripherals which lose their + registers, U-Boot needs to write the original value. When everything + is done, U-Boot needs to find out the wakeup vector provided by OSes + and jump there. + config MAX_PIRQ_LINKS int default 8 |