Lines Matching +full:loongson +full:- +full:3
1 // SPDX-License-Identifier: GPL-2.0-only
7 #include <linux/hwmon-sysfs.h>
9 #include <loongson.h>
17 * Loongson-3 series cpu has two sensors inside,
42 reg = ((reg >> 8) & 0xff) - 100; in loongson3_cpu_temp()
47 reg = (reg & 0xffff) * 731 / 0x4000 - 273; in loongson3_cpu_temp()
61 int id = (to_sensor_dev_attr(attr))->index - 1; in cpu_temp_label()
69 int id = (to_sensor_dev_attr(attr))->index - 1; in get_cpu_temp()
79 static SENSOR_DEVICE_ATTR(temp3_input, 0444, get_cpu_temp, NULL, 3);
80 static SENSOR_DEVICE_ATTR(temp3_label, 0444, cpu_temp_label, NULL, 3);
102 return attr->mode; in cpu_hwmon_is_visible()
136 pr_info("Loongson Hwmon Enter...\n"); in loongson_hwmon_init()
169 MODULE_DESCRIPTION("Loongson CPU Hwmon driver");