Merge branch '78-ibp-gen8-tdp-defs' into 'master'

Resolve "IBP Gen8: TDP defs"

Closes #78

See merge request tuxedocomputers/development/packages/tuxedo-keyboard!52
This commit is contained in:
Christoffer 2023-05-15 11:05:30 +00:00
commit 77ca765b05

View file

@ -82,6 +82,9 @@ 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_phxpxx[] = { 0x05, 0x05, 0x05 };
static int tdp_max_phxpxx[] = { 0x2a, 0x32, 0x5a };
static int tdp_min_pfxluxg[] = { 0x05, 0x05, 0x05 };
static int tdp_max_pfxluxg[] = { 0x23, 0x23, 0x28 };
@ -124,6 +127,9 @@ void uw_id_tdp(void)
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, "IBP1XI08MK1")) {
tdp_min_defs = tdp_min_phxpxx;
tdp_max_defs = tdp_max_phxpxx;
} else if (dmi_match(DMI_PRODUCT_SKU, "PULSE1502")) {
tdp_min_defs = tdp_min_pfxluxg;
tdp_max_defs = tdp_max_pfxluxg;