mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Add TDP ranges for IBPGen7
This commit is contained in:
parent
67a80ca3a2
commit
e6ecf69560
|
@ -79,6 +79,9 @@ static int tdp_max_ph4trx[] = { 0x32, 0x32, 0x00 };
|
||||||
static int tdp_min_ph4tqx[] = { 0x05, 0x05, 0x00 };
|
static int tdp_min_ph4tqx[] = { 0x05, 0x05, 0x00 };
|
||||||
static int tdp_max_ph4tqx[] = { 0x32, 0x32, 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_min_pfxluxg[] = { 0x05, 0x05, 0x05 };
|
||||||
static int tdp_max_pfxluxg[] = { 0x23, 0x23, 0x28 };
|
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) {
|
} else if (uw_feats->model == UW_MODEL_PH4TQF) {
|
||||||
tdp_min_defs = tdp_min_ph4tqx;
|
tdp_min_defs = tdp_min_ph4tqx;
|
||||||
tdp_max_defs = tdp_max_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)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0)
|
||||||
} else if (dmi_match(DMI_PRODUCT_SKU, "PULSE1502")) {
|
} else if (dmi_match(DMI_PRODUCT_SKU, "PULSE1502")) {
|
||||||
tdp_min_defs = tdp_min_pfxluxg;
|
tdp_min_defs = tdp_min_pfxluxg;
|
||||||
|
|
|
@ -50,6 +50,7 @@ struct uniwill_interface_t {
|
||||||
#define UW_MODEL_PH4TUX 0x13
|
#define UW_MODEL_PH4TUX 0x13
|
||||||
#define UW_MODEL_PH4TRX 0x12
|
#define UW_MODEL_PH4TRX 0x12
|
||||||
#define UW_MODEL_PH4TQF 0x14
|
#define UW_MODEL_PH4TQF 0x14
|
||||||
|
#define UW_MODEL_PH4AQF_ARX 0x17
|
||||||
|
|
||||||
struct uniwill_device_features_t {
|
struct uniwill_device_features_t {
|
||||||
u8 model;
|
u8 model;
|
||||||
|
|
Loading…
Reference in a new issue