Add polaris intel gen 4 power defs

This commit is contained in:
Christoffer Sandberg 2022-07-27 12:27:14 +02:00
parent a3f73cc502
commit a8a934b4f1
No known key found for this signature in database
GPG key ID: BF563F71B6C7A96D
2 changed files with 7 additions and 0 deletions

View file

@ -91,6 +91,9 @@ static int tdp_max_gmxtgxx[] = { 0x78, 0x78, 0xc8 };
static int tdp_min_gmxzgxx[] = { 0x0a, 0x0a, 0x0a };
static int tdp_max_gmxzgxx[] = { 0x50, 0x50, 0x5f };
static int tdp_min_gmxagxx[] = { 0x0a, 0x0a, 0x0a };
static int tdp_max_gmxagxx[] = { 0x78, 0x78, 0xd7 };
static int *tdp_min_defs = NULL;
static int *tdp_max_defs = NULL;
@ -120,6 +123,9 @@ void uw_id_tdp(void)
|| dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XA03")) {
tdp_min_defs = tdp_min_gmxzgxx;
tdp_max_defs = tdp_max_gmxzgxx;
} else if (dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XI04")) {
tdp_min_defs = tdp_min_gmxagxx;
tdp_max_defs = tdp_max_gmxagxx;
#endif
} else {
tdp_min_defs = NULL;

View file

@ -221,6 +221,7 @@ struct uniwill_device_features_t *uniwill_get_device_features(void)
|| dmi_match(DMI_PRODUCT_SKU, "POLARIS1XI03")
|| dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XI03")
|| dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XA03")
|| dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XI04")
#endif
;