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>
This commit is contained in:
parent
667108199a
commit
fa9c6f13d2
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue