summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/x86/asus-wmi.h
diff options
context:
space:
mode:
authorLuke D. Jones <luke@ljones.dev>2022-08-26 02:22:50 +0300
committerHans de Goede <hdegoede@redhat.com>2022-08-26 12:44:29 +0300
commite305a71cea37a64c7558b8b979f6f08f657d0c3d (patch)
tree1365a5eb85df4a845feb3c29e85e6a7becf6601f /include/linux/platform_data/x86/asus-wmi.h
parent12ff4c803d23218f9afea9f82019a5c9619f6744 (diff)
downloadlinux-e305a71cea37a64c7558b8b979f6f08f657d0c3d.tar.xz
platform/x86: asus-wmi: Implement TUF laptop keyboard LED modes
Adds support for changing the laptop keyboard LED mode and colour. The modes are visible effects such as static, rainbow, pulsing, colour cycles. These sysfs attributes are added to asus::kbd_backlight: - kbd_rgb_mode - kbd_rgb_mode_index Signed-off-by: Luke D. Jones <luke@ljones.dev> Link: https://lore.kernel.org/r/20220825232251.345893-2-luke@ljones.dev Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/linux/platform_data/x86/asus-wmi.h')
-rw-r--r--include/linux/platform_data/x86/asus-wmi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/platform_data/x86/asus-wmi.h b/include/linux/platform_data/x86/asus-wmi.h
index 31d810e6569d..09e5477f1aea 100644
--- a/include/linux/platform_data/x86/asus-wmi.h
+++ b/include/linux/platform_data/x86/asus-wmi.h
@@ -104,6 +104,9 @@
/* gpu mux switch, 0 = dGPU, 1 = Optimus */
#define ASUS_WMI_DEVID_GPU_MUX 0x00090016
+/* TUF laptop RGB modes/colours */
+#define ASUS_WMI_DEVID_TUF_RGB_MODE 0x00100056
+
/* DSTS masks */
#define ASUS_WMI_DSTS_STATUS_BIT 0x00000001
#define ASUS_WMI_DSTS_UNKNOWN_BIT 0x00000002