Home
last modified time | relevance | path

Searched refs:tach_div (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/hwmon/
H A Daspeed-g6-pwm-tach.c289 u32 tach_div; in aspeed_tach_val_to_rpm() local
291 tach_div = tach_val * priv->tach_divisor * DEFAULT_FAN_PULSE_PR; in aspeed_tach_val_to_rpm()
294 priv->clk_rate, tach_val, tach_div); in aspeed_tach_val_to_rpm()
297 do_div(rpm, tach_div); in aspeed_tach_val_to_rpm()
H A Daspeed-pwm-tacho.c528 u32 raw_data, tach_div, clk_source, msec, usec, val; in aspeed_get_fan_tach_ch_rpm() local
558 tach_div = priv->type_fan_tach_clock_division[type]; in aspeed_get_fan_tach_ch_rpm()
566 tach_div = (0x4 << both) << (tach_div * 2); in aspeed_get_fan_tach_ch_rpm()
572 return (clk_source * 60) / (2 * raw_data * tach_div); in aspeed_get_fan_tach_ch_rpm()