| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167 |
- /* SPDX-License-Identifier: GPL-2.0
- *
- * Definitions for kernel modules using asus-armoury driver
- *
- * Copyright (c) 2024 Luke Jones <luke@ljones.dev>
- */
- #ifndef _ASUS_ARMOURY_H_
- #define _ASUS_ARMOURY_H_
- #include <linux/dmi.h>
- #include <linux/platform_device.h>
- #include <linux/sysfs.h>
- #include <linux/types.h>
- #define DRIVER_NAME "asus-armoury"
- /**
- * armoury_attr_uint_store() - Send an uint to WMI method if within min/max.
- * @kobj: Pointer to the driver object.
- * @attr: Pointer to the attribute calling this function.
- * @buf: The buffer to read from, this is parsed to `uint` type.
- * @count: Required by sysfs attribute macros, pass in from the callee attr.
- * @min: Minimum accepted value. Below this returns -EINVAL.
- * @max: Maximum accepted value. Above this returns -EINVAL.
- * @store_value: Pointer to where the parsed value should be stored.
- * @wmi_dev: The WMI function ID to use.
- *
- * This function is intended to be generic so it can be called from any "_store"
- * attribute which works only with integers.
- *
- * Integers to be sent to the WMI method is inclusive range checked and
- * an error returned if out of range.
- *
- * If the value is valid and WMI is success then the sysfs attribute is notified
- * and if asus_bios_requires_reboot() is true then reboot attribute
- * is also notified.
- *
- * Returns: Either count, or an error.
- */
- ssize_t armoury_attr_uint_store(struct kobject *kobj, struct kobj_attribute *attr,
- const char *buf, size_t count, u32 min, u32 max,
- u32 *store_value, u32 wmi_dev);
- /**
- * armoury_attr_uint_show() - Receive an uint from a WMI method.
- * @kobj: Pointer to the driver object.
- * @attr: Pointer to the attribute calling this function.
- * @buf: The buffer to write to, as an `uint` type.
- * @wmi_dev: The WMI function ID to use.
- *
- * This function is intended to be generic so it can be called from any "_show"
- * attribute which works only with integers.
- *
- * Returns: Either count, or an error.
- */
- ssize_t armoury_attr_uint_show(struct kobject *kobj, struct kobj_attribute *attr,
- char *buf, u32 wmi_dev);
- #define __ASUS_ATTR_RO(_func, _name) \
- { \
- .attr = { .name = __stringify(_name), .mode = 0444 }, \
- .show = _func##_##_name##_show, \
- }
- #define __ASUS_ATTR_RO_AS(_name, _show) \
- { \
- .attr = { .name = __stringify(_name), .mode = 0444 }, \
- .show = _show, \
- }
- #define __ASUS_ATTR_RW(_func, _name) \
- __ATTR(_name, 0644, _func##_##_name##_show, _func##_##_name##_store)
- #define __WMI_STORE_INT(_attr, _min, _max, _wmi) \
- static ssize_t _attr##_store(struct kobject *kobj, \
- struct kobj_attribute *attr, \
- const char *buf, size_t count) \
- { \
- return armoury_attr_uint_store(kobj, attr, buf, count, _min, \
- _max, NULL, _wmi); \
- }
- #define ASUS_WMI_SHOW_INT(_attr, _wmi) \
- static ssize_t _attr##_show(struct kobject *kobj, \
- struct kobj_attribute *attr, char *buf) \
- { \
- return armoury_attr_uint_show(kobj, attr, buf, _wmi); \
- }
- /* Create functions and attributes for use in other macros or on their own */
- /* Shows a formatted static variable */
- #define __ATTR_SHOW_FMT(_prop, _attrname, _fmt, _val) \
- static ssize_t _attrname##_##_prop##_show( \
- struct kobject *kobj, struct kobj_attribute *attr, char *buf) \
- { \
- return sysfs_emit(buf, _fmt, _val); \
- } \
- static struct kobj_attribute attr_##_attrname##_##_prop = \
- __ASUS_ATTR_RO(_attrname, _prop)
- #define __ATTR_RO_INT_GROUP_ENUM(_attrname, _wmi, _fsname, _possible, _dispname)\
- ASUS_WMI_SHOW_INT(_attrname##_current_value, _wmi); \
- static struct kobj_attribute attr_##_attrname##_current_value = \
- __ASUS_ATTR_RO(_attrname, current_value); \
- __ATTR_SHOW_FMT(display_name, _attrname, "%s\n", _dispname); \
- __ATTR_SHOW_FMT(possible_values, _attrname, "%s\n", _possible); \
- static struct kobj_attribute attr_##_attrname##_type = \
- __ASUS_ATTR_RO_AS(type, enum_type_show); \
- static struct attribute *_attrname##_attrs[] = { \
- &attr_##_attrname##_current_value.attr, \
- &attr_##_attrname##_display_name.attr, \
- &attr_##_attrname##_possible_values.attr, \
- &attr_##_attrname##_type.attr, \
- NULL \
- }; \
- static const struct attribute_group _attrname##_attr_group = { \
- .name = _fsname, .attrs = _attrname##_attrs \
- }
- #define __ATTR_RW_INT_GROUP_ENUM(_attrname, _minv, _maxv, _wmi, _fsname,\
- _possible, _dispname) \
- __WMI_STORE_INT(_attrname##_current_value, _minv, _maxv, _wmi); \
- ASUS_WMI_SHOW_INT(_attrname##_current_value, _wmi); \
- static struct kobj_attribute attr_##_attrname##_current_value = \
- __ASUS_ATTR_RW(_attrname, current_value); \
- __ATTR_SHOW_FMT(display_name, _attrname, "%s\n", _dispname); \
- __ATTR_SHOW_FMT(possible_values, _attrname, "%s\n", _possible); \
- static struct kobj_attribute attr_##_attrname##_type = \
- __ASUS_ATTR_RO_AS(type, enum_type_show); \
- static struct attribute *_attrname##_attrs[] = { \
- &attr_##_attrname##_current_value.attr, \
- &attr_##_attrname##_display_name.attr, \
- &attr_##_attrname##_possible_values.attr, \
- &attr_##_attrname##_type.attr, \
- NULL \
- }; \
- static const struct attribute_group _attrname##_attr_group = { \
- .name = _fsname, .attrs = _attrname##_attrs \
- }
- /* Boolean style enumeration, base macro. Requires adding show/store */
- #define __ATTR_GROUP_ENUM(_attrname, _fsname, _possible, _dispname) \
- __ATTR_SHOW_FMT(display_name, _attrname, "%s\n", _dispname); \
- __ATTR_SHOW_FMT(possible_values, _attrname, "%s\n", _possible); \
- static struct kobj_attribute attr_##_attrname##_type = \
- __ASUS_ATTR_RO_AS(type, enum_type_show); \
- static struct attribute *_attrname##_attrs[] = { \
- &attr_##_attrname##_current_value.attr, \
- &attr_##_attrname##_display_name.attr, \
- &attr_##_attrname##_possible_values.attr, \
- &attr_##_attrname##_type.attr, \
- NULL \
- }; \
- static const struct attribute_group _attrname##_attr_group = { \
- .name = _fsname, .attrs = _attrname##_attrs \
- }
- #define ASUS_ATTR_GROUP_BOOL_RO(_attrname, _fsname, _wmi, _dispname) \
- __ATTR_RO_INT_GROUP_ENUM(_attrname, _wmi, _fsname, "0;1", _dispname)
- #define ASUS_ATTR_GROUP_BOOL_RW(_attrname, _fsname, _wmi, _dispname) \
- __ATTR_RW_INT_GROUP_ENUM(_attrname, 0, 1, _wmi, _fsname, "0;1", _dispname)
- #define ASUS_ATTR_GROUP_ENUM_INT_RO(_attrname, _fsname, _wmi, _possible, _dispname) \
- __ATTR_RO_INT_GROUP_ENUM(_attrname, _wmi, _fsname, _possible, _dispname)
- /*
- * Requires <name>_current_value_show(), <name>_current_value_show()
- */
- #define ASUS_ATTR_GROUP_BOOL(_attrname, _fsname, _dispname) \
- static struct kobj_attribute attr_##_attrname##_current_value = \
- __ASUS_ATTR_RW(_attrname, current_value); \
- __ATTR_GROUP_ENUM(_attrname, _fsname, "0;1", _dispname)
- /*
- * Requires <name>_current_value_show(), <name>_current_value_show()
- * and <name>_possible_values_show()
- */
- #define ASUS_ATTR_GROUP_ENUM(_attrname, _fsname, _dispname) \
- __ATTR_SHOW_FMT(display_name, _attrname, "%s\n", _dispname); \
- static struct kobj_attribute attr_##_attrname##_current_value = \
- __ASUS_ATTR_RW(_attrname, current_value); \
- static struct kobj_attribute attr_##_attrname##_possible_values = \
- __ASUS_ATTR_RO(_attrname, possible_values); \
- static struct kobj_attribute attr_##_attrname##_type = \
- __ASUS_ATTR_RO_AS(type, enum_type_show); \
- static struct attribute *_attrname##_attrs[] = { \
- &attr_##_attrname##_current_value.attr, \
- &attr_##_attrname##_display_name.attr, \
- &attr_##_attrname##_possible_values.attr, \
- &attr_##_attrname##_type.attr, \
- NULL \
- }; \
- static const struct attribute_group _attrname##_attr_group = { \
- .name = _fsname, .attrs = _attrname##_attrs \
- }
- #define ASUS_ATTR_GROUP_INT_VALUE_ONLY_RO(_attrname, _fsname, _wmi, _dispname) \
- ASUS_WMI_SHOW_INT(_attrname##_current_value, _wmi); \
- static struct kobj_attribute attr_##_attrname##_current_value = \
- __ASUS_ATTR_RO(_attrname, current_value); \
- __ATTR_SHOW_FMT(display_name, _attrname, "%s\n", _dispname); \
- static struct kobj_attribute attr_##_attrname##_type = \
- __ASUS_ATTR_RO_AS(type, int_type_show); \
- static struct attribute *_attrname##_attrs[] = { \
- &attr_##_attrname##_current_value.attr, \
- &attr_##_attrname##_display_name.attr, \
- &attr_##_attrname##_type.attr, NULL \
- }; \
- static const struct attribute_group _attrname##_attr_group = { \
- .name = _fsname, .attrs = _attrname##_attrs \
- }
- /*
- * ROG PPT attributes need a little different in setup as they
- * require rog_tunables members.
- */
- #define __ROG_TUNABLE_SHOW(_prop, _attrname, _val) \
- static ssize_t _attrname##_##_prop##_show( \
- struct kobject *kobj, struct kobj_attribute *attr, char *buf) \
- { \
- struct rog_tunables *tunables = get_current_tunables(); \
- \
- if (!tunables || !tunables->power_limits) \
- return -ENODEV; \
- \
- return sysfs_emit(buf, "%d\n", tunables->power_limits->_val); \
- } \
- static struct kobj_attribute attr_##_attrname##_##_prop = \
- __ASUS_ATTR_RO(_attrname, _prop)
- #define __ROG_TUNABLE_SHOW_DEFAULT(_attrname) \
- static ssize_t _attrname##_default_value_show( \
- struct kobject *kobj, struct kobj_attribute *attr, char *buf) \
- { \
- struct rog_tunables *tunables = get_current_tunables(); \
- \
- if (!tunables || !tunables->power_limits) \
- return -ENODEV; \
- \
- return sysfs_emit( \
- buf, "%d\n", \
- tunables->power_limits->_attrname##_def ? \
- tunables->power_limits->_attrname##_def : \
- tunables->power_limits->_attrname##_max); \
- } \
- static struct kobj_attribute attr_##_attrname##_default_value = \
- __ASUS_ATTR_RO(_attrname, default_value)
- #define __ROG_TUNABLE_RW(_attr, _wmi) \
- static ssize_t _attr##_current_value_store( \
- struct kobject *kobj, struct kobj_attribute *attr, \
- const char *buf, size_t count) \
- { \
- struct rog_tunables *tunables = get_current_tunables(); \
- \
- if (!tunables || !tunables->power_limits) \
- return -ENODEV; \
- \
- if (tunables->power_limits->_attr##_min == \
- tunables->power_limits->_attr##_max) \
- return -EINVAL; \
- \
- return armoury_attr_uint_store(kobj, attr, buf, count, \
- tunables->power_limits->_attr##_min, \
- tunables->power_limits->_attr##_max, \
- &tunables->_attr, _wmi); \
- } \
- static ssize_t _attr##_current_value_show( \
- struct kobject *kobj, struct kobj_attribute *attr, char *buf) \
- { \
- struct rog_tunables *tunables = get_current_tunables(); \
- \
- if (!tunables) \
- return -ENODEV; \
- \
- return sysfs_emit(buf, "%u\n", tunables->_attr); \
- } \
- static struct kobj_attribute attr_##_attr##_current_value = \
- __ASUS_ATTR_RW(_attr, current_value)
- #define ASUS_ATTR_GROUP_ROG_TUNABLE(_attrname, _fsname, _wmi, _dispname) \
- __ROG_TUNABLE_RW(_attrname, _wmi); \
- __ROG_TUNABLE_SHOW_DEFAULT(_attrname); \
- __ROG_TUNABLE_SHOW(min_value, _attrname, _attrname##_min); \
- __ROG_TUNABLE_SHOW(max_value, _attrname, _attrname##_max); \
- __ATTR_SHOW_FMT(scalar_increment, _attrname, "%d\n", 1); \
- __ATTR_SHOW_FMT(display_name, _attrname, "%s\n", _dispname); \
- static struct kobj_attribute attr_##_attrname##_type = \
- __ASUS_ATTR_RO_AS(type, int_type_show); \
- static struct attribute *_attrname##_attrs[] = { \
- &attr_##_attrname##_current_value.attr, \
- &attr_##_attrname##_default_value.attr, \
- &attr_##_attrname##_min_value.attr, \
- &attr_##_attrname##_max_value.attr, \
- &attr_##_attrname##_scalar_increment.attr, \
- &attr_##_attrname##_display_name.attr, \
- &attr_##_attrname##_type.attr, \
- NULL \
- }; \
- static const struct attribute_group _attrname##_attr_group = { \
- .name = _fsname, .attrs = _attrname##_attrs \
- }
- /* Default is always the maximum value unless *_def is specified */
- struct power_limits {
- u8 ppt_pl1_spl_min;
- u8 ppt_pl1_spl_def;
- u8 ppt_pl1_spl_max;
- u8 ppt_pl2_sppt_min;
- u8 ppt_pl2_sppt_def;
- u8 ppt_pl2_sppt_max;
- u8 ppt_pl3_fppt_min;
- u8 ppt_pl3_fppt_def;
- u8 ppt_pl3_fppt_max;
- u8 ppt_apu_sppt_min;
- u8 ppt_apu_sppt_def;
- u8 ppt_apu_sppt_max;
- u8 ppt_platform_sppt_min;
- u8 ppt_platform_sppt_def;
- u8 ppt_platform_sppt_max;
- /* Nvidia GPU specific, default is always max */
- u8 nv_dynamic_boost_def; // unused. exists for macro
- u8 nv_dynamic_boost_min;
- u8 nv_dynamic_boost_max;
- u8 nv_temp_target_def; // unused. exists for macro
- u8 nv_temp_target_min;
- u8 nv_temp_target_max;
- u8 nv_tgp_def; // unused. exists for macro
- u8 nv_tgp_min;
- u8 nv_tgp_max;
- };
- struct power_data {
- const struct power_limits *ac_data;
- const struct power_limits *dc_data;
- bool requires_fan_curve;
- };
- /*
- * For each available attribute there must be a min and a max.
- * _def is not required and will be assumed to be default == max if missing.
- */
- static const struct dmi_system_id power_limits[] = {
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FA401UM"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_max = 80,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 80,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 15,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 35,
- .ppt_pl2_sppt_min = 31,
- .ppt_pl2_sppt_max = 44,
- .ppt_pl3_fppt_min = 45,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FA401UV"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_max = 80,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 80,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 55,
- .nv_tgp_max = 75,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 35,
- .ppt_pl2_sppt_min = 31,
- .ppt_pl2_sppt_max = 44,
- .ppt_pl3_fppt_min = 45,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FA401W"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_max = 80,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 80,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 55,
- .nv_tgp_max = 75,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 30,
- .ppt_pl2_sppt_min = 31,
- .ppt_pl2_sppt_max = 44,
- .ppt_pl3_fppt_min = 45,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FA507N"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_max = 80,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 80,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_def = 45,
- .ppt_pl1_spl_max = 65,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_def = 54,
- .ppt_pl2_sppt_max = 65,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FA507UV"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_max = 80,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 80,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 55,
- .nv_tgp_max = 115,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_def = 45,
- .ppt_pl1_spl_max = 65,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_def = 54,
- .ppt_pl2_sppt_max = 65,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FA507R"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_max = 80,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 80,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_def = 45,
- .ppt_pl1_spl_max = 65,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_def = 54,
- .ppt_pl2_sppt_max = 65,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FA507X"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_max = 80,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 80,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 20,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 55,
- .nv_tgp_max = 85,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_def = 45,
- .ppt_pl1_spl_max = 65,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_def = 54,
- .ppt_pl2_sppt_max = 65,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FA507Z"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_max = 65,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_max = 105,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 15,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 55,
- .nv_tgp_max = 85,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 45,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_max = 60,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FA607NU"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_max = 80,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 80,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_def = 45,
- .ppt_pl1_spl_max = 65,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_def = 54,
- .ppt_pl2_sppt_max = 65,
- .ppt_pl3_fppt_min = 25,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FA607P"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 30,
- .ppt_pl1_spl_def = 100,
- .ppt_pl1_spl_max = 135,
- .ppt_pl2_sppt_min = 30,
- .ppt_pl2_sppt_def = 115,
- .ppt_pl2_sppt_max = 135,
- .ppt_pl3_fppt_min = 30,
- .ppt_pl3_fppt_max = 135,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 55,
- .nv_tgp_max = 115,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_def = 45,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_def = 60,
- .ppt_pl2_sppt_max = 80,
- .ppt_pl3_fppt_min = 25,
- .ppt_pl3_fppt_max = 80,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FA608UM"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_def = 45,
- .ppt_pl1_spl_max = 90,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_def = 54,
- .ppt_pl2_sppt_max = 90,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_def = 65,
- .ppt_pl3_fppt_max = 90,
- .nv_dynamic_boost_min = 10,
- .nv_dynamic_boost_max = 15,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 55,
- .nv_tgp_max = 100,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_def = 45,
- .ppt_pl1_spl_max = 65,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_def = 54,
- .ppt_pl2_sppt_max = 65,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FA608WI"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_def = 90,
- .ppt_pl1_spl_max = 90,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_def = 90,
- .ppt_pl2_sppt_max = 90,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_def = 90,
- .ppt_pl3_fppt_max = 90,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 55,
- .nv_tgp_max = 115,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_def = 45,
- .ppt_pl1_spl_max = 65,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_def = 54,
- .ppt_pl2_sppt_max = 65,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_def = 65,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FA617NS"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_apu_sppt_min = 15,
- .ppt_apu_sppt_max = 80,
- .ppt_platform_sppt_min = 30,
- .ppt_platform_sppt_max = 120,
- },
- .dc_data = &(struct power_limits) {
- .ppt_apu_sppt_min = 25,
- .ppt_apu_sppt_max = 35,
- .ppt_platform_sppt_min = 45,
- .ppt_platform_sppt_max = 100,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FA617NT"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_apu_sppt_min = 15,
- .ppt_apu_sppt_max = 80,
- .ppt_platform_sppt_min = 30,
- .ppt_platform_sppt_max = 115,
- },
- .dc_data = &(struct power_limits) {
- .ppt_apu_sppt_min = 15,
- .ppt_apu_sppt_max = 45,
- .ppt_platform_sppt_min = 30,
- .ppt_platform_sppt_max = 50,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FA617XS"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_apu_sppt_min = 15,
- .ppt_apu_sppt_max = 80,
- .ppt_platform_sppt_min = 30,
- .ppt_platform_sppt_max = 120,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_apu_sppt_min = 25,
- .ppt_apu_sppt_max = 35,
- .ppt_platform_sppt_min = 45,
- .ppt_platform_sppt_max = 100,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FA617XT"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_apu_sppt_min = 15,
- .ppt_apu_sppt_max = 80,
- .ppt_platform_sppt_min = 30,
- .ppt_platform_sppt_max = 145,
- },
- .dc_data = &(struct power_limits) {
- .ppt_apu_sppt_min = 25,
- .ppt_apu_sppt_max = 35,
- .ppt_platform_sppt_min = 45,
- .ppt_platform_sppt_max = 100,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FX507VI"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_max = 135,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_max = 135,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 45,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_max = 60,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FX507VV"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_def = 115,
- .ppt_pl1_spl_max = 135,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_max = 135,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 45,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_max = 60,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "FX507Z"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_max = 90,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_max = 135,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 15,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 45,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_max = 60,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GA401Q"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 15,
- .ppt_pl2_sppt_max = 80,
- },
- .dc_data = NULL,
- },
- },
- {
- .matches = {
- // This model is full AMD. No Nvidia dGPU.
- DMI_MATCH(DMI_BOARD_NAME, "GA402R"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_apu_sppt_min = 15,
- .ppt_apu_sppt_max = 80,
- .ppt_platform_sppt_min = 30,
- .ppt_platform_sppt_max = 115,
- },
- .dc_data = &(struct power_limits) {
- .ppt_apu_sppt_min = 25,
- .ppt_apu_sppt_def = 30,
- .ppt_apu_sppt_max = 45,
- .ppt_platform_sppt_min = 40,
- .ppt_platform_sppt_max = 60,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GA402X"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_def = 35,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_def = 65,
- .ppt_pl2_sppt_max = 80,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 80,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 35,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 35,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GA403UI"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 80,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 80,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 55,
- .nv_tgp_max = 65,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 35,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 35,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GA403UV"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 80,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 80,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 55,
- .nv_tgp_max = 65,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 35,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 35,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GA403WM"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 80,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 80,
- .nv_dynamic_boost_min = 0,
- .nv_dynamic_boost_max = 15,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 55,
- .nv_tgp_max = 85,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 35,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 35,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GA403WR"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 80,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 80,
- .nv_dynamic_boost_min = 0,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 80,
- .nv_tgp_max = 95,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 35,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 35,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GA403WW"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 80,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 80,
- .nv_dynamic_boost_min = 0,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 80,
- .nv_tgp_max = 95,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 35,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 35,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GA503QM"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_def = 35,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 65,
- .ppt_pl2_sppt_max = 80,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GA503QR"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_def = 35,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 65,
- .ppt_pl2_sppt_max = 80,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GA503R"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_def = 35,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_def = 65,
- .ppt_pl2_sppt_max = 80,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 80,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 20,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_def = 25,
- .ppt_pl1_spl_max = 65,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_def = 54,
- .ppt_pl2_sppt_max = 60,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 65,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GA605W"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_max = 80,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 80,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 20,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 55,
- .nv_tgp_max = 85,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 35,
- .ppt_pl2_sppt_min = 31,
- .ppt_pl2_sppt_max = 44,
- .ppt_pl3_fppt_min = 45,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GU603Z"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 60,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 135,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 20,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 40,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 40,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- }
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GU604V"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 65,
- .ppt_pl1_spl_max = 120,
- .ppt_pl2_sppt_min = 65,
- .ppt_pl2_sppt_max = 150,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 40,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_def = 40,
- .ppt_pl2_sppt_max = 60,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GU605CR"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 30,
- .ppt_pl1_spl_max = 85,
- .ppt_pl2_sppt_min = 38,
- .ppt_pl2_sppt_max = 110,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 20,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 80,
- .nv_tgp_def = 90,
- .nv_tgp_max = 105,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 30,
- .ppt_pl1_spl_max = 85,
- .ppt_pl2_sppt_min = 38,
- .ppt_pl2_sppt_max = 110,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GU605CW"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 45,
- .ppt_pl1_spl_max = 85,
- .ppt_pl2_sppt_min = 56,
- .ppt_pl2_sppt_max = 110,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 20,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 80,
- .nv_tgp_def = 90,
- .nv_tgp_max = 110,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 85,
- .ppt_pl2_sppt_min = 32,
- .ppt_pl2_sppt_max = 110,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GU605CX"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 45,
- .ppt_pl1_spl_max = 85,
- .ppt_pl2_sppt_min = 56,
- .ppt_pl2_sppt_max = 110,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 20,
- .nv_temp_target_min = 7,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 95,
- .nv_tgp_def = 100,
- .nv_tgp_max = 110,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 85,
- .ppt_pl2_sppt_min = 32,
- .ppt_pl2_sppt_max = 110,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GU605MU"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_max = 90,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_max = 135,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 20,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 55,
- .nv_tgp_max = 85,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 35,
- .ppt_pl2_sppt_min = 38,
- .ppt_pl2_sppt_max = 53,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GU605M"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_max = 90,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_max = 135,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 20,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 35,
- .ppt_pl2_sppt_min = 38,
- .ppt_pl2_sppt_max = 53,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GV301Q"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 45,
- .ppt_pl2_sppt_min = 65,
- .ppt_pl2_sppt_max = 80,
- },
- .dc_data = NULL,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GV301R"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 45,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 54,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 35,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 35,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GV302XU"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 55,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 60,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 35,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 35,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GV302XV"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 55,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 60,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 35,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 35,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GV601R"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_def = 35,
- .ppt_pl1_spl_max = 90,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_def = 54,
- .ppt_pl2_sppt_max = 100,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_def = 80,
- .ppt_pl3_fppt_max = 125,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_def = 28,
- .ppt_pl1_spl_max = 65,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_def = 54,
- .ppt_pl2_sppt_max = 60,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_def = 80,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GV601V"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_def = 100,
- .ppt_pl1_spl_max = 110,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_max = 135,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 20,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 40,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_def = 40,
- .ppt_pl2_sppt_max = 60,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GX650P"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_def = 110,
- .ppt_pl1_spl_max = 130,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_def = 125,
- .ppt_pl2_sppt_max = 130,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_def = 125,
- .ppt_pl3_fppt_max = 135,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_def = 25,
- .ppt_pl1_spl_max = 65,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_def = 35,
- .ppt_pl2_sppt_max = 65,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_def = 42,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GX650RX"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_def = 70,
- .ppt_pl1_spl_max = 90,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_def = 70,
- .ppt_pl2_sppt_max = 100,
- .ppt_pl3_fppt_min = 28,
- .ppt_pl3_fppt_def = 110,
- .ppt_pl3_fppt_max = 125,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 76,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_max = 50,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_max = 50,
- .ppt_pl3_fppt_min = 28,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 76,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "GZ302EA"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_def = 60,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 32,
- .ppt_pl2_sppt_def = 75,
- .ppt_pl2_sppt_max = 92,
- .ppt_pl3_fppt_min = 45,
- .ppt_pl3_fppt_def = 86,
- .ppt_pl3_fppt_max = 93,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_def = 45,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 32,
- .ppt_pl2_sppt_def = 52,
- .ppt_pl2_sppt_max = 92,
- .ppt_pl3_fppt_min = 45,
- .ppt_pl3_fppt_def = 71,
- .ppt_pl3_fppt_max = 93,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "G513I"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- /* Yes this laptop is very limited */
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 15,
- .ppt_pl2_sppt_max = 80,
- },
- .dc_data = NULL,
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "G513QM"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- /* Yes this laptop is very limited */
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 100,
- .ppt_pl2_sppt_min = 15,
- .ppt_pl2_sppt_max = 190,
- },
- .dc_data = NULL,
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "G513QY"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- /* Advantage Edition Laptop, no PL1 or PL2 limits */
- .ppt_apu_sppt_min = 15,
- .ppt_apu_sppt_max = 100,
- .ppt_platform_sppt_min = 70,
- .ppt_platform_sppt_max = 190,
- },
- .dc_data = NULL,
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "G513R"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 35,
- .ppt_pl1_spl_max = 90,
- .ppt_pl2_sppt_min = 54,
- .ppt_pl2_sppt_max = 100,
- .ppt_pl3_fppt_min = 54,
- .ppt_pl3_fppt_max = 125,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_max = 50,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_max = 50,
- .ppt_pl3_fppt_min = 28,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "G614FP"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 30,
- .ppt_pl1_spl_max = 120,
- .ppt_pl2_sppt_min = 65,
- .ppt_pl2_sppt_def = 140,
- .ppt_pl2_sppt_max = 165,
- .ppt_pl3_fppt_min = 65,
- .ppt_pl3_fppt_def = 140,
- .ppt_pl3_fppt_max = 165,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 15,
- .nv_tgp_min = 50,
- .nv_tgp_max = 100,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 65,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 65,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 75,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "G614J"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_max = 140,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_max = 175,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 55,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 70,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "G615LR"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_def = 140,
- .ppt_pl1_spl_max = 175,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_max = 175,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_tgp_min = 65,
- .nv_tgp_max = 115,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 55,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 70,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "G634J"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_max = 140,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_max = 175,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 55,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 70,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "G713PV"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 30,
- .ppt_pl1_spl_def = 120,
- .ppt_pl1_spl_max = 130,
- .ppt_pl2_sppt_min = 65,
- .ppt_pl2_sppt_def = 125,
- .ppt_pl2_sppt_max = 130,
- .ppt_pl3_fppt_min = 65,
- .ppt_pl3_fppt_def = 125,
- .ppt_pl3_fppt_max = 130,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 65,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 65,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 75,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "G733C"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_max = 170,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_max = 175,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_max = 35,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_max = 35,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "G733P"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 30,
- .ppt_pl1_spl_def = 100,
- .ppt_pl1_spl_max = 130,
- .ppt_pl2_sppt_min = 65,
- .ppt_pl2_sppt_def = 125,
- .ppt_pl2_sppt_max = 130,
- .ppt_pl3_fppt_min = 65,
- .ppt_pl3_fppt_def = 125,
- .ppt_pl3_fppt_max = 130,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 65,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 65,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 75,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "G733QS"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 15,
- .ppt_pl2_sppt_max = 80,
- },
- .requires_fan_curve = false,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "G814J"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_max = 140,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_max = 140,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 55,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 70,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "G834J"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_max = 140,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_max = 175,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 55,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 70,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "G835LR"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_def = 140,
- .ppt_pl1_spl_max = 175,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_max = 175,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 65,
- .nv_tgp_max = 115,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 55,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 70,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "G835LW"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 28,
- .ppt_pl1_spl_def = 140,
- .ppt_pl1_spl_max = 175,
- .ppt_pl2_sppt_min = 28,
- .ppt_pl2_sppt_max = 175,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 25,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 80,
- .nv_tgp_max = 150,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 55,
- .ppt_pl2_sppt_min = 25,
- .ppt_pl2_sppt_max = 70,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- .requires_fan_curve = true,
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "H7606W"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 15,
- .ppt_pl1_spl_max = 80,
- .ppt_pl2_sppt_min = 35,
- .ppt_pl2_sppt_max = 80,
- .ppt_pl3_fppt_min = 35,
- .ppt_pl3_fppt_max = 80,
- .nv_dynamic_boost_min = 5,
- .nv_dynamic_boost_max = 20,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- .nv_tgp_min = 55,
- .nv_tgp_max = 85,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 25,
- .ppt_pl1_spl_max = 35,
- .ppt_pl2_sppt_min = 31,
- .ppt_pl2_sppt_max = 44,
- .ppt_pl3_fppt_min = 45,
- .ppt_pl3_fppt_max = 65,
- .nv_temp_target_min = 75,
- .nv_temp_target_max = 87,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "RC71"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 7,
- .ppt_pl1_spl_max = 30,
- .ppt_pl2_sppt_min = 15,
- .ppt_pl2_sppt_max = 43,
- .ppt_pl3_fppt_min = 15,
- .ppt_pl3_fppt_max = 53,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 7,
- .ppt_pl1_spl_def = 15,
- .ppt_pl1_spl_max = 25,
- .ppt_pl2_sppt_min = 15,
- .ppt_pl2_sppt_def = 20,
- .ppt_pl2_sppt_max = 30,
- .ppt_pl3_fppt_min = 15,
- .ppt_pl3_fppt_def = 25,
- .ppt_pl3_fppt_max = 35,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "RC72"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 7,
- .ppt_pl1_spl_max = 30,
- .ppt_pl2_sppt_min = 15,
- .ppt_pl2_sppt_max = 43,
- .ppt_pl3_fppt_min = 15,
- .ppt_pl3_fppt_max = 53,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 7,
- .ppt_pl1_spl_def = 17,
- .ppt_pl1_spl_max = 25,
- .ppt_pl2_sppt_min = 15,
- .ppt_pl2_sppt_def = 24,
- .ppt_pl2_sppt_max = 30,
- .ppt_pl3_fppt_min = 15,
- .ppt_pl3_fppt_def = 30,
- .ppt_pl3_fppt_max = 35,
- },
- },
- },
- {
- .matches = {
- DMI_MATCH(DMI_BOARD_NAME, "RC73XA"),
- },
- .driver_data = &(struct power_data) {
- .ac_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 7,
- .ppt_pl1_spl_max = 35,
- .ppt_pl2_sppt_min = 14,
- .ppt_pl2_sppt_max = 45,
- .ppt_pl3_fppt_min = 19,
- .ppt_pl3_fppt_max = 55,
- },
- .dc_data = &(struct power_limits) {
- .ppt_pl1_spl_min = 7,
- .ppt_pl1_spl_def = 17,
- .ppt_pl1_spl_max = 35,
- .ppt_pl2_sppt_min = 13,
- .ppt_pl2_sppt_def = 21,
- .ppt_pl2_sppt_max = 45,
- .ppt_pl3_fppt_min = 19,
- .ppt_pl3_fppt_def = 26,
- .ppt_pl3_fppt_max = 55,
- },
- },
- },
- {}
- };
- #endif /* _ASUS_ARMOURY_H_ */
|