Add TDP ranges for IBPGen7

This commit is contained in:
Christoffer Sandberg 2022-09-27 15:06:23 +02:00
parent 67a80ca3a2
commit e6ecf69560
No known key found for this signature in database
GPG key ID: BF563F71B6C7A96D
2 changed files with 7 additions and 0 deletions

View file

@ -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;

View file

@ -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;