From b9b6f240c8d10c00372c51cd351f1716b4272ee6 Mon Sep 17 00:00:00 2001 From: Christoffer Sandberg Date: Tue, 27 Sep 2022 15:13:13 +0200 Subject: [PATCH] Add Stellaris AMD Gen4 TDP ranges + threeprofile leds id --- 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 29eafe3..d25583a 100644 --- a/src/tuxedo_io/tuxedo_io.c +++ b/src/tuxedo_io/tuxedo_io.c @@ -100,6 +100,9 @@ static int tdp_max_gmxzgxx[] = { 0x50, 0x50, 0x5f }; static int tdp_min_gmxagxx[] = { 0x05, 0x05, 0x05 }; static int tdp_max_gmxagxx[] = { 0x78, 0x78, 0xd7 }; +static int tdp_min_gmxrgxx[] = { 0x05, 0x05, 0x05 }; +static int tdp_max_gmxrgxx[] = { 0x64, 0x64, 0x6e }; + static int *tdp_min_defs = NULL; static int *tdp_max_defs = NULL; @@ -138,6 +141,9 @@ void uw_id_tdp(void) } else if (dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XI04")) { tdp_min_defs = tdp_min_gmxagxx; tdp_max_defs = tdp_max_gmxagxx; + } else if (dmi_match(DMI_PRODUCT_SKU, "STEPOL1XA04")) { + tdp_min_defs = tdp_min_gmxrgxx; + tdp_max_defs = tdp_max_gmxrgxx; #endif } else { tdp_min_defs = NULL; diff --git a/src/uniwill_keyboard.h b/src/uniwill_keyboard.h index 382f7e4..547e505 100644 --- a/src/uniwill_keyboard.h +++ b/src/uniwill_keyboard.h @@ -224,6 +224,7 @@ struct uniwill_device_features_t *uniwill_get_device_features(void) || dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XI03") || dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XA03") || dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XI04") + || dmi_match(DMI_PRODUCT_SKU, "STEPOL1XA04") #endif ;