platform/x86: ideapad-laptop: DYTC Platform profile support
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Tue, 5 Jan 2021 13:14:43 +0000 (21:14 +0800)
committerHans de Goede <hdegoede@redhat.com>
Tue, 2 Feb 2021 18:21:04 +0000 (19:21 +0100)
commiteabe533904cbcb6c7df530fd807cf2a3c3567d35
treeb4a09be32a5c325ce90d8db491c160895cc3fd55
parentc3bfcd4c676238e198d5a798b50e5d424bf05497
platform/x86: ideapad-laptop: DYTC Platform profile support

Add support to ideapad-laptop for Lenovo platforms that have DYTC
version 5 support or newer to use the platform profile feature.

Mostly based on Mark Pearson <markpearson@lenovo.com>'s thinkpad-acpi
work but massaged to fit ideapad driver.

Note that different from ThinkPads, IdeaPads's Thermal Hotkey won't
trigger profile switch itself, we'll leave it for userspace programs.

Tested on Lenovo Yoga-14S ARE Chinese Edition.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210105131447.38036-3-jiaxun.yang@flygoat.com
[hdegoede@redhat.com s/QUIET/LOW_POWER/]
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/Kconfig
drivers/platform/x86/ideapad-laptop.c