From a8a934b4f176f1b0c2fb6d165c236da6c581e985 Mon Sep 17 00:00:00 2001 From: Christoffer Sandberg Date: Wed, 27 Jul 2022 12:27:14 +0200 Subject: [PATCH] Add polaris intel gen 4 power defs --- src/tuxedo_io/tuxedo_io.c | 6 ++++++ src/uniwill_keyboard.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/tuxedo_io/tuxedo_io.c b/src/tuxedo_io/tuxedo_io.c index 90a310b..8526b40 100644 --- a/src/tuxedo_io/tuxedo_io.c +++ b/src/tuxedo_io/tuxedo_io.c @@ -91,6 +91,9 @@ static int tdp_max_gmxtgxx[] = { 0x78, 0x78, 0xc8 }; static int tdp_min_gmxzgxx[] = { 0x0a, 0x0a, 0x0a }; static int tdp_max_gmxzgxx[] = { 0x50, 0x50, 0x5f }; +static int tdp_min_gmxagxx[] = { 0x0a, 0x0a, 0x0a }; +static int tdp_max_gmxagxx[] = { 0x78, 0x78, 0xd7 }; + static int *tdp_min_defs = NULL; static int *tdp_max_defs = NULL; @@ -120,6 +123,9 @@ void uw_id_tdp(void) || dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XA03")) { tdp_min_defs = tdp_min_gmxzgxx; tdp_max_defs = tdp_max_gmxzgxx; + } else if (dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XI04")) { + tdp_min_defs = tdp_min_gmxagxx; + tdp_max_defs = tdp_max_gmxagxx; #endif } else { tdp_min_defs = NULL; diff --git a/src/uniwill_keyboard.h b/src/uniwill_keyboard.h index ea5a50f..e242419 100644 --- a/src/uniwill_keyboard.h +++ b/src/uniwill_keyboard.h @@ -221,6 +221,7 @@ struct uniwill_device_features_t *uniwill_get_device_features(void) || dmi_match(DMI_PRODUCT_SKU, "POLARIS1XI03") || dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XI03") || dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XA03") + || dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XI04") #endif ;