Searched refs:tach_div (Results 1 - 2 of 2) sorted by path
/linux-master/drivers/hwmon/ |
H A D | aspeed-g6-pwm-tach.c | 288 u32 tach_div; local 290 tach_div = tach_val * priv->tach_divisor * DEFAULT_FAN_PULSE_PR; 292 dev_dbg(priv->dev, "clk %ld, tach_val %d , tach_div %d\n", 293 priv->clk_rate, tach_val, tach_div); 296 do_div(rpm, tach_div);
|
H A D | aspeed-pwm-tacho.c | 530 u32 raw_data, tach_div, clk_source, msec, usec, val; local 560 tach_div = priv->type_fan_tach_clock_division[type]; 568 tach_div = (0x4 << both) << (tach_div * 2); 574 return (clk_source * 60) / (2 * raw_data * tach_div);
|
Completed in 186 milliseconds