]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: thinkpad_acpi: Add PSC mode support
authorMark Pearson <markpearson@lenovo.com>
Fri, 25 Feb 2022 18:25:05 +0000 (13:25 -0500)
committerHans de Goede <hdegoede@redhat.com>
Wed, 2 Mar 2022 14:41:58 +0000 (15:41 +0100)
commitc62a701d2da394ffd2bb947b6ac93cff192838c4
treea08eabc8390b7e7eb4c93e82e0cb16cfe604e6c6
parent4208c6aa6b0d1ab62032a66338daef7fb34db075
platform/x86: thinkpad_acpi: Add PSC mode support

The Lenovo AMD platforms use PSC mode for providing platform
profile support.

Detect if PSC mode is available and add support for setting the
different profile modes appropriately.

Note - if both MMC mode and PSC mode are available then MMC mode
will be used in preference.

Tested on T14 G1 AMD and T14s G2 AMD.

Signed-off-by: Mark Pearson <markpearson@lenovo.com>
Link: https://lore.kernel.org/r/20220225182505.7234-1-markpearson@lenovo.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/thinkpad_acpi.c