mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Add PH4TQX
This commit is contained in:
parent
7593dd33ee
commit
ad8d42454e
|
@ -109,6 +109,7 @@ static u32 uniwill_identify(void)
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0)
|
||||||
|| dmi_string_in(DMI_PRODUCT_SERIAL, "PH4TUX")
|
|| dmi_string_in(DMI_PRODUCT_SERIAL, "PH4TUX")
|
||||||
|| dmi_string_in(DMI_PRODUCT_SERIAL, "PH4TRX")
|
|| dmi_string_in(DMI_PRODUCT_SERIAL, "PH4TRX")
|
||||||
|
|| dmi_string_in(DMI_PRODUCT_SERIAL, "PH4TQX")
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -269,11 +270,15 @@ static u32 uw_set_fan_auto(void)
|
||||||
/*
|
/*
|
||||||
* TDP boundary definitions per device
|
* TDP boundary definitions per device
|
||||||
*/
|
*/
|
||||||
static int tdp_min_ph4tux[] = { 0x00, 0x00, 0x00 };
|
static int tdp_min_ph4tux[] = { 0x07, 0x07, 0x00 };
|
||||||
static int tdp_max_ph4tux[] = { 0x26, 0x26, 0x00 };
|
static int tdp_max_ph4tux[] = { 0x26, 0x26, 0x00 };
|
||||||
static int tdp_min_ph4trx[] = { 0x00, 0x00, 0x00 };
|
|
||||||
|
static int tdp_min_ph4trx[] = { 0x07, 0x07, 0x00 };
|
||||||
static int tdp_max_ph4trx[] = { 0x32, 0x32, 0x00 };
|
static int tdp_max_ph4trx[] = { 0x32, 0x32, 0x00 };
|
||||||
|
|
||||||
|
static int tdp_min_ph4tqx[] = { 0x07, 0x07, 0x00 };
|
||||||
|
static int tdp_max_ph4tqx[] = { 0x32, 0x32, 0x00 };
|
||||||
|
|
||||||
static int uw_get_tdp_min(u8 tdp_index)
|
static int uw_get_tdp_min(u8 tdp_index)
|
||||||
{
|
{
|
||||||
int tdp_min = 0;
|
int tdp_min = 0;
|
||||||
|
@ -284,6 +289,8 @@ static int uw_get_tdp_min(u8 tdp_index)
|
||||||
tdp_min = tdp_min_ph4tux[tdp_index];
|
tdp_min = tdp_min_ph4tux[tdp_index];
|
||||||
} else if (dmi_string_in(DMI_PRODUCT_SERIAL, "PH4TRX")) {
|
} else if (dmi_string_in(DMI_PRODUCT_SERIAL, "PH4TRX")) {
|
||||||
tdp_min = tdp_min_ph4trx[tdp_index];
|
tdp_min = tdp_min_ph4trx[tdp_index];
|
||||||
|
} else if (dmi_string_in(DMI_PRODUCT_SERIAL, "PH4TQX")) {
|
||||||
|
tdp_min = tdp_min_ph4tqx[tdp_index];
|
||||||
}
|
}
|
||||||
|
|
||||||
return tdp_min;
|
return tdp_min;
|
||||||
|
@ -299,6 +306,8 @@ static int uw_get_tdp_max(u8 tdp_index)
|
||||||
tdp_max = tdp_max_ph4tux[tdp_index];
|
tdp_max = tdp_max_ph4tux[tdp_index];
|
||||||
} else if (dmi_string_in(DMI_PRODUCT_SERIAL, "PH4TRX")) {
|
} else if (dmi_string_in(DMI_PRODUCT_SERIAL, "PH4TRX")) {
|
||||||
tdp_max = tdp_max_ph4trx[tdp_index];
|
tdp_max = tdp_max_ph4trx[tdp_index];
|
||||||
|
} else if (dmi_string_in(DMI_PRODUCT_SERIAL, "PH4TQX")) {
|
||||||
|
tdp_max = tdp_max_ph4tqx[tdp_index];
|
||||||
}
|
}
|
||||||
|
|
||||||
return tdp_max;
|
return tdp_max;
|
||||||
|
|
Loading…
Reference in a new issue