Searched refs:tach_div (Results 1 – 2 of 2) sorted by relevance
288 u32 tach_div; in aspeed_tach_val_to_rpm() local290 tach_div = tach_val * priv->tach_divisor * DEFAULT_FAN_PULSE_PR; in aspeed_tach_val_to_rpm()293 priv->clk_rate, tach_val, tach_div); in aspeed_tach_val_to_rpm()296 do_div(rpm, tach_div); in aspeed_tach_val_to_rpm()
530 u32 raw_data, tach_div, clk_source, msec, usec, val; in aspeed_get_fan_tach_ch_rpm() local560 tach_div = priv->type_fan_tach_clock_division[type]; in aspeed_get_fan_tach_ch_rpm()568 tach_div = (0x4 << both) << (tach_div * 2); in aspeed_get_fan_tach_ch_rpm()574 return (clk_source * 60) / (2 * raw_data * tach_div); in aspeed_get_fan_tach_ch_rpm()