summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2019-02-07 11:30:06 -0800
committerPatrick Georgi <pgeorgi@google.com>2019-02-08 11:02:04 +0000
commitfa9c6f13d2734ddaad6197564e3a072a4cecd515 (patch)
tree974690ff64f542ea30fe101590de32038dc8ac45 /src
parent667108199a04972ebd83c8a0430f2dddd6009879 (diff)
downloadcoreboot-fa9c6f13d2734ddaad6197564e3a072a4cecd515.tar.gz
coreboot-fa9c6f13d2734ddaad6197564e3a072a4cecd515.tar.bz2
coreboot-fa9c6f13d2734ddaad6197564e3a072a4cecd515.zip
x86/acpi: Use PM_TABLET where appropriate
Instead of having SYSTEM_TYPE_DETACHABLE and SYSTEM_TYPE_TABLET use PM_MOBILE have them use PM_TABLET instead. Change-Id: If0ce51e522d36420ecd5b51bdfec6cca11c00333 Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://review.coreboot.org/c/31277 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/acpi.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/arch/x86/acpi.c b/src/arch/x86/acpi.c
index a89b871f5dd7..0c85d3a2a5fd 100644
--- a/src/arch/x86/acpi.c
+++ b/src/arch/x86/acpi.c
@@ -1067,10 +1067,11 @@ void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
fadt->x_dsdt_h = 0;
if (IS_ENABLED(CONFIG_SYSTEM_TYPE_CONVERTIBLE) ||
- IS_ENABLED(CONFIG_SYSTEM_TYPE_DETACHABLE) ||
- IS_ENABLED(CONFIG_SYSTEM_TYPE_LAPTOP) ||
- IS_ENABLED(CONFIG_SYSTEM_TYPE_TABLET))
+ IS_ENABLED(CONFIG_SYSTEM_TYPE_LAPTOP))
fadt->preferred_pm_profile = PM_MOBILE;
+ else if (IS_ENABLED(CONFIG_SYSTEM_TYPE_DETACHABLE) ||
+ IS_ENABLED(CONFIG_SYSTEM_TYPE_TABLET))
+ fadt->preferred_pm_profile = PM_TABLET;
else
fadt->preferred_pm_profile = PM_DESKTOP;