Skip to content
Snippets Groups Projects
Commit e652e130 authored by Bin Meng's avatar Bin Meng
Browse files

x86: baytrail: Conditionally report S3 in the ACPI table


When U-Boot is built without ACPI S3 support, it should not report
S3 in the ACPI table otherwise when kernel does STR it won't work.

Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Tested-by: default avatarStefan Roese <sr@denx.de>
parent b727961b
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
*/ */
Name(\_S0, Package() {0x0, 0x0, 0x0, 0x0}) Name(\_S0, Package() {0x0, 0x0, 0x0, 0x0})
#ifdef CONFIG_HAVE_ACPI_RESUME
Name(\_S3, Package() {0x5, 0x0, 0x0, 0x0}) Name(\_S3, Package() {0x5, 0x0, 0x0, 0x0})
#endif
Name(\_S4, Package() {0x6, 0x0, 0x0, 0x0}) Name(\_S4, Package() {0x6, 0x0, 0x0, 0x0})
Name(\_S5, Package() {0x7, 0x0, 0x0, 0x0}) Name(\_S5, Package() {0x7, 0x0, 0x0, 0x0})
...@@ -100,7 +100,7 @@ struct arch_global_data { ...@@ -100,7 +100,7 @@ struct arch_global_data {
u32 high_table_limit; u32 high_table_limit;
#endif #endif
#ifdef CONFIG_HAVE_ACPI_RESUME #ifdef CONFIG_HAVE_ACPI_RESUME
int prev_sleep_state; /* Previous sleep state */ int prev_sleep_state; /* Previous sleep state ACPI_S0/1../5 */
#endif #endif
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment