Add Pulse 15 Gen 2 defs (tdp + id)

This commit is contained in:
Christoffer Sandberg 2022-08-19 17:12:34 +02:00
parent dd26ff6100
commit 44801d689f
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_pfxluxg[] = { 0x05, 0x05, 0x05 };
static int tdp_max_pfxluxg[] = { 0x23, 0x23, 0x28 };
static int tdp_min_gmxngxx[] = { 0x05, 0x05, 0x05 };
static int tdp_max_gmxngxx[] = { 0x50, 0x50, 0x5f };
@ -109,6 +112,9 @@ void uw_id_tdp(void)
tdp_min_defs = tdp_min_ph4tqx;
tdp_max_defs = tdp_max_ph4tqx;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0)
} else if (dmi_match(DMI_PRODUCT_SKU, "PULSE1502")) {
tdp_min_defs = tdp_min_pfxluxg;
tdp_max_defs = tdp_max_pfxluxg;
} else if (dmi_match(DMI_PRODUCT_SKU, "POLARIS1XA02")) {
tdp_min_defs = tdp_min_gmxngxx;
tdp_max_defs = tdp_max_gmxngxx;

View file

@ -46,6 +46,7 @@ struct uniwill_interface_t {
uniwill_write_ec_ram_t *write_ec_ram;
};
#define UW_MODEL_PF5LUXG 0x09
#define UW_MODEL_PH4TUX 0x13
#define UW_MODEL_PH4TRX 0x12
#define UW_MODEL_PH4TQF 0x14