From e6ecf69560ae8023e5dd8a1155a8b4ce8f9f580e Mon Sep 17 00:00:00 2001 From: Christoffer Sandberg Date: Tue, 27 Sep 2022 15:06:23 +0200 Subject: [PATCH] Add TDP ranges for IBPGen7 --- src/tuxedo_io/tuxedo_io.c | 6 ++++++ src/uniwill_interfaces.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/tuxedo_io/tuxedo_io.c b/src/tuxedo_io/tuxedo_io.c index 6bb514d..29eafe3 100644 --- a/src/tuxedo_io/tuxedo_io.c +++ b/src/tuxedo_io/tuxedo_io.c @@ -79,6 +79,9 @@ static int tdp_max_ph4trx[] = { 0x32, 0x32, 0x00 }; static int tdp_min_ph4tqx[] = { 0x05, 0x05, 0x00 }; static int tdp_max_ph4tqx[] = { 0x32, 0x32, 0x00 }; +static int tdp_min_ph4axx[] = { 0x05, 0x05, 0x00 }; +static int tdp_max_ph4axx[] = { 0x2d, 0x3c, 0x00 }; + static int tdp_min_pfxluxg[] = { 0x05, 0x05, 0x05 }; static int tdp_max_pfxluxg[] = { 0x23, 0x23, 0x28 }; @@ -111,6 +114,9 @@ void uw_id_tdp(void) } else if (uw_feats->model == UW_MODEL_PH4TQF) { tdp_min_defs = tdp_min_ph4tqx; tdp_max_defs = tdp_max_ph4tqx; + } else if (uw_feats->model == UW_MODEL_PH4AQF_ARX) { + tdp_min_defs = tdp_min_ph4axx; + tdp_max_defs = tdp_max_ph4axx; #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0) } else if (dmi_match(DMI_PRODUCT_SKU, "PULSE1502")) { tdp_min_defs = tdp_min_pfxluxg; diff --git a/src/uniwill_interfaces.h b/src/uniwill_interfaces.h index 7287d00..219c814 100644 --- a/src/uniwill_interfaces.h +++ b/src/uniwill_interfaces.h @@ -50,6 +50,7 @@ struct uniwill_interface_t { #define UW_MODEL_PH4TUX 0x13 #define UW_MODEL_PH4TRX 0x12 #define UW_MODEL_PH4TQF 0x14 +#define UW_MODEL_PH4AQF_ARX 0x17 struct uniwill_device_features_t { u8 model;