Added support for Zen/Zen3 RAPL package power sensor.
This commit is contained in:
+7
-1
@@ -1,3 +1,6 @@
|
||||
#ifndef BOARD_SENSORS_H
|
||||
#define BOARD_SENSORS_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define MAX_SENSOR_NAME_LENGTH 256
|
||||
@@ -25,6 +28,7 @@ static struct hwmon_sensor hwmon_sensor_info[] =
|
||||
{"zenpower", "temp8", "CPU ", "CCD", "°C", 1000.0, -40.0}, /* Tccd6 */
|
||||
{"zenpower", "temp9", "CPU ", "CCD", "°C", 1000.0, -40.0}, /* Tccd7 */
|
||||
{"zenpower", "temp10", "CPU ", "CCD", "°C", 1000.0, -40.0}, /* Tccd8 */
|
||||
{"zen-rapl", "", "CPU ", "POW", " W", 0.0, 0.0}, /* Zen RAPL placeholder */
|
||||
{"asusec", "temp1", "Motherboard ", "CHIP", "°C", 1000.0, -40.0}, /* Chipset */
|
||||
{"asusec", "temp5", "Motherboard ", "VRM", "°C", 1000.0, -40.0}, /* VRM */
|
||||
{"asusec", "temp3", "", "MOBO", "°C", 1000.0, -40.0}, /* Motherboard */
|
||||
@@ -42,4 +46,6 @@ struct hwmon_avail_sensor {
|
||||
};
|
||||
|
||||
int find_board_sensors(struct hwmon_avail_sensor *board_sensors, int max_sensors);
|
||||
int get_sensor_reading(struct hwmon_avail_sensor *sensor, float *reading);
|
||||
int get_sensor_reading(struct hwmon_avail_sensor *sensor, float *reading);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user