]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: oxpec: Make turbo val apply a bitmask
authorAntheas Kapenekakis <lkml@antheas.dev>
Sat, 26 Apr 2025 17:29:54 +0000 (19:29 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 8 May 2025 13:03:51 +0000 (16:03 +0300)
commite25a982b38b3365f3c137c427db87be1ef040414
treef391ea82ac9398d682286502dc4846b1ae937e11
parent4e29dd3821dfc6531979c4a87ca450a236d78e46
platform/x86: oxpec: Make turbo val apply a bitmask

On the OneXPlayer G1, the turbo register is multiplexed and contains an
extra bit (0x02) which is set on boot. Therefore, we should only change
the 0x40 bit to not affect other behavior. Collapse the disable and
enable functions, and apply a mask for the turbo bit instead.

Tested-by: Joshua Tam <csinaction@pm.me>
Suggested-by: Joshua Tam <csinaction@pm.me>
Signed-off-by: Joshua Tam <csinaction@pm.me>
Signed-off-by: Antheas Kapenekakis <lkml@antheas.dev>
Link: https://lore.kernel.org/r/20250426172955.13957-2-lkml@antheas.dev
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/oxpec.c