@@ -165,6 +165,7 @@ enum board_family {
165165 family_amd_400_series ,
166166 family_amd_500_series ,
167167 family_amd_600_series ,
168+ family_amd_800_series ,
168169 family_intel_300_series ,
169170 family_intel_400_series ,
170171 family_intel_600_series
@@ -260,6 +261,20 @@ static const struct ec_sensor_info sensors_family_amd_600[] = {
260261 EC_SENSOR ("Water_Out" , hwmon_temp , 1 , 0x01 , 0x01 ),
261262};
262263
264+ static const struct ec_sensor_info sensors_family_amd_800 [] = {
265+ [ec_sensor_temp_cpu ] = EC_SENSOR ("CPU" , hwmon_temp , 1 , 0x00 , 0x30 ),
266+ [ec_sensor_temp_cpu_package ] =
267+ EC_SENSOR ("CPU Package" , hwmon_temp , 1 , 0x00 , 0x31 ),
268+ [ec_sensor_temp_mb ] =
269+ EC_SENSOR ("Motherboard" , hwmon_temp , 1 , 0x00 , 0x32 ),
270+ [ec_sensor_temp_vrm ] =
271+ EC_SENSOR ("VRM" , hwmon_temp , 1 , 0x00 , 0x33 ),
272+ [ec_sensor_temp_t_sensor ] =
273+ EC_SENSOR ("T_Sensor" , hwmon_temp , 1 , 0x00 , 0x36 ),
274+ [ec_sensor_fan_cpu_opt ] =
275+ EC_SENSOR ("CPU_Opt" , hwmon_fan , 2 , 0x00 , 0xb0 ),
276+ };
277+
263278static const struct ec_sensor_info sensors_family_intel_300 [] = {
264279 [ec_sensor_temp_chipset ] =
265280 EC_SENSOR ("Chipset" , hwmon_temp , 1 , 0x00 , 0x3a ),
@@ -377,6 +392,14 @@ static const struct ec_board_info board_info_pro_art_x670E_creator_wifi = {
377392 .family = family_amd_600_series ,
378393};
379394
395+ static const struct ec_board_info board_info_pro_art_x870E_creator_wifi = {
396+ .sensors = SENSOR_TEMP_CPU | SENSOR_TEMP_CPU_PACKAGE |
397+ SENSOR_TEMP_MB | SENSOR_TEMP_VRM |
398+ SENSOR_TEMP_T_SENSOR | SENSOR_FAN_CPU_OPT ,
399+ .mutex_path = ACPI_GLOBAL_LOCK_PSEUDO_PATH ,
400+ .family = family_amd_800_series ,
401+ };
402+
380403static const struct ec_board_info board_info_pro_art_b550_creator = {
381404 .sensors = SENSOR_SET_TEMP_CHIPSET_CPU_MB |
382405 SENSOR_TEMP_T_SENSOR |
@@ -575,6 +598,8 @@ static const struct dmi_system_id dmi_table[] = {
575598 & board_info_pro_art_x570_creator_wifi ),
576599 DMI_EXACT_MATCH_ASUS_BOARD_NAME ("ProArt X670E-CREATOR WIFI" ,
577600 & board_info_pro_art_x670E_creator_wifi ),
601+ DMI_EXACT_MATCH_ASUS_BOARD_NAME ("ProArt X870E-CREATOR WIFI" ,
602+ & board_info_pro_art_x870E_creator_wifi ),
578603 DMI_EXACT_MATCH_ASUS_BOARD_NAME ("ProArt B550-CREATOR" ,
579604 & board_info_pro_art_b550_creator ),
580605 DMI_EXACT_MATCH_ASUS_BOARD_NAME ("Pro WS X570-ACE" ,
@@ -1087,6 +1112,9 @@ static int asus_ec_probe(struct platform_device *pdev)
10871112 case family_amd_600_series :
10881113 ec_data -> sensors_info = sensors_family_amd_600 ;
10891114 break ;
1115+ case family_amd_800_series :
1116+ ec_data -> sensors_info = sensors_family_amd_800 ;
1117+ break ;
10901118 case family_intel_300_series :
10911119 ec_data -> sensors_info = sensors_family_intel_300 ;
10921120 break ;
0 commit comments