Searched +full:fan +full:- +full:prescale (Results 1 – 2 of 2) sorted by relevance
1 // SPDX-License-Identifier: GPL-2.0-or-later3 * max6650.c - Part of lm_sensors, Linux kernel modules for hardware18 * http://pdfserv.maxim-ic.com/en/ds/MAX6650-MAX6651.pdf27 #include <linux/hwmon-sysfs.h>36 /* fan_voltage: 5=5V fan, 12=12V fan, 0=don't change */91 /* Minimum and maximum values of the FAN-RPM */143 * Useful range for dac is 0-180 for 12V fans and 0-76 for 5V fans. in dac_to_pwm()146 return clamp_val(255 - (255 * dac) / DAC_LIMIT(v12), 0, 255); in dac_to_pwm()153 return limit - (limit * pwm) / 255; in pwm_to_dac()159 struct i2c_client *client = data->client; in max6650_update_device()[all …]
1 // SPDX-License-Identifier: GPL-2.02 // Copyright (c) 2014-2018 Nuvoton Technology corporation.7 #include <linux/hwmon-sysfs.h>79 /* NPCM7XX FAN Tacho registers */140 /* FAN General Definition */141 /* Define the maximum FAN channel number */147 * Get Fan Tach Timeout (base on clock 214843.75Hz, 1 cnt = 4.654us)149 * (The minimum FAN speed could to support ~640RPM/pulse 1,150 * 320RPM/pulse 2, ...-- 10.6Hz)154 #define NPCM7XX_FAN_TCPA (NPCM7XX_FAN_TCNT - NPCM7XX_FAN_TIMEOUT)[all …]