summaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data/x86
diff options
context:
space:
mode:
authorLuke D. Jones <luke@ljones.dev>2023-06-30 17:35:48 +1200
committerHans de Goede <hdegoede@redhat.com>2023-07-12 17:01:49 +0200
commitd4eca58aafe241f68e9d7e015d262abe8c8507ac (patch)
treec4531fb1af01ff6893e02499614a3f8940648c90 /include/linux/platform_data/x86
parentee887807d05d3d6fb68917df59e450385fe630d3 (diff)
downloadlinux-stable-d4eca58aafe241f68e9d7e015d262abe8c8507ac.tar.gz
linux-stable-d4eca58aafe241f68e9d7e015d262abe8c8507ac.tar.bz2
linux-stable-d4eca58aafe241f68e9d7e015d262abe8c8507ac.zip
platform/x86: asus-wmi: add WMI method to show if egpu connected
Exposes the WMI method which tells if the eGPU is properly connected on the devices that support it. Signed-off-by: Luke D. Jones <luke@ljones.dev> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20230630053552.976579-5-luke@ljones.dev Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/linux/platform_data/x86')
-rw-r--r--include/linux/platform_data/x86/asus-wmi.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/platform_data/x86/asus-wmi.h b/include/linux/platform_data/x86/asus-wmi.h
index 329efc086993..2034648f8cdf 100644
--- a/include/linux/platform_data/x86/asus-wmi.h
+++ b/include/linux/platform_data/x86/asus-wmi.h
@@ -100,7 +100,9 @@
/* Charging mode - 1=Barrel, 2=USB */
#define ASUS_WMI_DEVID_CHARGE_MODE 0x0012006C
-/* dgpu on/off */
+/* epu is connected? 1 == true */
+#define ASUS_WMI_DEVID_EGPU_CONNECTED 0x00090018
+/* egpu on/off */
#define ASUS_WMI_DEVID_EGPU 0x00090019
/* dgpu on/off */