summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2019-02-01 11:33:57 -0800
committerDuncan Laurie <dlaurie@chromium.org>2019-02-05 16:03:29 +0000
commit8312df41731dafa64cbe8b30e89e3dfe87422d53 (patch)
tree5f1910353c75fda57998fc1cedf087cf2c131de2 /src/arch
parentdff29e0c65462258776b8fb821516faad3ec1394 (diff)
downloadcoreboot-8312df41731dafa64cbe8b30e89e3dfe87422d53.tar.xz
Kconfig: Add system type entries for common enclosures
These are more common system types and in some cases it is important to know when a device is a convertible or a tablet or detachable instead of just a laptop. This change will select the appropriate SMBIOS enclosure type based on the selected system type. This is important for the Intel Virtual Button driver as it does a check on the SMBIOS enclosure type and only enables the tablet mode events if it is set to convertible: https://patchwork.kernel.org/patch/10236253/ Change-Id: I148ec2329a1dd38ad55c60ba277a514c66376fcc Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://review.coreboot.org/c/31206 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/acpi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/x86/acpi.c b/src/arch/x86/acpi.c
index 3b33f1ba7f..a89b871f5d 100644
--- a/src/arch/x86/acpi.c
+++ b/src/arch/x86/acpi.c
@@ -1066,7 +1066,10 @@ void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
fadt->x_dsdt_l = (unsigned long)dsdt;
fadt->x_dsdt_h = 0;
- if (IS_ENABLED(CONFIG_SYSTEM_TYPE_LAPTOP))
+ 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))
fadt->preferred_pm_profile = PM_MOBILE;
else
fadt->preferred_pm_profile = PM_DESKTOP;