Home
last modified time | relevance | path

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

/openbmc/linux/drivers/hwmon/
H A Daspeed-pwm-tacho.c454 static void aspeed_set_fan_tach_ch_enable(struct regmap *regmap, u8 fan_tach_ch, in aspeed_set_fan_tach_ch_enable() argument
458 ASPEED_PTCR_CTRL_FAN_NUM_EN(fan_tach_ch), in aspeed_set_fan_tach_ch_enable()
460 ASPEED_PTCR_CTRL_FAN_NUM_EN(fan_tach_ch) : 0); in aspeed_set_fan_tach_ch_enable()
463 static void aspeed_set_fan_tach_ch_source(struct regmap *regmap, u8 fan_tach_ch, in aspeed_set_fan_tach_ch_source() argument
467 TACH_PWM_SOURCE_BIT01(fan_tach_ch)); in aspeed_set_fan_tach_ch_source()
469 TACH_PWM_SOURCE_BIT2(fan_tach_ch)); in aspeed_set_fan_tach_ch_source()
472 TACH_PWM_SOURCE_MASK_BIT01(fan_tach_ch), in aspeed_set_fan_tach_ch_source()
476 TACH_PWM_SOURCE_MASK_BIT2(fan_tach_ch), in aspeed_set_fan_tach_ch_source()
526 u8 fan_tach_ch) in aspeed_get_fan_tach_ch_rpm() argument
535 regmap_write(priv->regmap, ASPEED_PTCR_TRIGGER, 0x1 << fan_tach_ch); in aspeed_get_fan_tach_ch_rpm()
[all …]
H A Daspeed-g6-pwm-tach.c303 u8 fan_tach_ch) in aspeed_get_fan_tach_ch_rpm() argument
307 val = readl(priv->base + TACH_ASPEED_STS(fan_tach_ch)); in aspeed_get_fan_tach_ch_rpm()