mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
hwmon: (asus-ec-sensors) add Pro WS TRX50-SAGE WIFI
Added support for Pro WS TRX50-SAGE WIFI motherboard. Signed-off-by: Paul Heneghan <paul@networks-extra.com> Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com> Link: https://lore.kernel.org/r/20251003081002.1013313-2-eugene.shalygin@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
2e0b52f1ae
commit
4bb9cf5d41
2 changed files with 23 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ Supported boards:
|
|||
* PRIME X570-PRO
|
||||
* PRIME X670E-PRO WIFI
|
||||
* PRIME Z270-A
|
||||
* Pro WS TRX50-SAGE WIFI
|
||||
* Pro WS X570-ACE
|
||||
* Pro WS WRX90E-SAGE SE
|
||||
* ProArt X570-CREATOR WIFI
|
||||
|
|
|
|||
|
|
@ -182,6 +182,7 @@ enum board_family {
|
|||
family_amd_500_series,
|
||||
family_amd_600_series,
|
||||
family_amd_800_series,
|
||||
family_amd_trx_50,
|
||||
family_amd_wrx_90,
|
||||
family_intel_200_series,
|
||||
family_intel_300_series,
|
||||
|
|
@ -294,6 +295,15 @@ static const struct ec_sensor_info sensors_family_amd_800[] = {
|
|||
EC_SENSOR("CPU_Opt", hwmon_fan, 2, 0x00, 0xb0),
|
||||
};
|
||||
|
||||
static const struct ec_sensor_info sensors_family_amd_trx_50[] = {
|
||||
[ec_sensor_fan_vrmw_hs] =
|
||||
EC_SENSOR("VRMW HS", hwmon_fan, 2, 0x00, 0xb4),
|
||||
[ec_sensor_fan_vrme_hs] =
|
||||
EC_SENSOR("VRME HS", hwmon_fan, 2, 0x00, 0xbc),
|
||||
[ec_sensor_temp_t_sensor] =
|
||||
EC_SENSOR("T_Sensor", hwmon_temp, 1, 0x01, 0x04),
|
||||
};
|
||||
|
||||
static const struct ec_sensor_info sensors_family_amd_wrx_90[] = {
|
||||
[ec_sensor_temp_cpu_package] =
|
||||
EC_SENSOR("CPU Package", hwmon_temp, 1, 0x00, 0x31),
|
||||
|
|
@ -533,6 +543,13 @@ static const struct ec_board_info board_info_pro_art_x870E_creator_wifi = {
|
|||
.family = family_amd_800_series,
|
||||
};
|
||||
|
||||
static const struct ec_board_info board_info_pro_ws_trx50_sage_wifi = {
|
||||
/* Board also has a nct6798 */
|
||||
.sensors = SENSOR_TEMP_T_SENSOR | SENSOR_FAN_VRME_HS | SENSOR_FAN_VRMW_HS,
|
||||
.mutex_path = ASUS_HW_ACCESS_MUTEX_RMTW_ASMX,
|
||||
.family = family_amd_trx_50,
|
||||
};
|
||||
|
||||
static const struct ec_board_info board_info_pro_ws_wrx90e_sage_se = {
|
||||
/* Board also has a nct6798 with 7 more fans and temperatures */
|
||||
.sensors = SENSOR_TEMP_CPU_PACKAGE | SENSOR_TEMP_T_SENSOR |
|
||||
|
|
@ -739,6 +756,8 @@ static const struct dmi_system_id dmi_table[] = {
|
|||
&board_info_pro_art_x670E_creator_wifi),
|
||||
DMI_EXACT_MATCH_ASUS_BOARD_NAME("ProArt X870E-CREATOR WIFI",
|
||||
&board_info_pro_art_x870E_creator_wifi),
|
||||
DMI_EXACT_MATCH_ASUS_BOARD_NAME("Pro WS TRX50-SAGE WIFI",
|
||||
&board_info_pro_ws_trx50_sage_wifi),
|
||||
DMI_EXACT_MATCH_ASUS_BOARD_NAME("Pro WS WRX90E-SAGE SE",
|
||||
&board_info_pro_ws_wrx90e_sage_se),
|
||||
DMI_EXACT_MATCH_ASUS_BOARD_NAME("Pro WS X570-ACE",
|
||||
|
|
@ -1274,6 +1293,9 @@ static int asus_ec_probe(struct platform_device *pdev)
|
|||
case family_amd_800_series:
|
||||
ec_data->sensors_info = sensors_family_amd_800;
|
||||
break;
|
||||
case family_amd_trx_50:
|
||||
ec_data->sensors_info = sensors_family_amd_trx_50;
|
||||
break;
|
||||
case family_amd_wrx_90:
|
||||
ec_data->sensors_info = sensors_family_amd_wrx_90;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue