Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/hwmon/
Daspeed-pwm-tacho.c456 static void aspeed_set_fan_tach_ch_enable(struct regmap *regmap, u8 fan_tach_ch, in aspeed_set_fan_tach_ch_enable() argument
460 ASPEED_PTCR_CTRL_FAN_NUM_EN(fan_tach_ch), in aspeed_set_fan_tach_ch_enable()
462 ASPEED_PTCR_CTRL_FAN_NUM_EN(fan_tach_ch) : 0); in aspeed_set_fan_tach_ch_enable()
465 static void aspeed_set_fan_tach_ch_source(struct regmap *regmap, u8 fan_tach_ch, in aspeed_set_fan_tach_ch_source() argument
469 TACH_PWM_SOURCE_BIT01(fan_tach_ch)); in aspeed_set_fan_tach_ch_source()
471 TACH_PWM_SOURCE_BIT2(fan_tach_ch)); in aspeed_set_fan_tach_ch_source()
474 TACH_PWM_SOURCE_MASK_BIT01(fan_tach_ch), in aspeed_set_fan_tach_ch_source()
478 TACH_PWM_SOURCE_MASK_BIT2(fan_tach_ch), in aspeed_set_fan_tach_ch_source()
528 u8 fan_tach_ch) in aspeed_get_fan_tach_ch_rpm() argument
537 regmap_write(priv->regmap, ASPEED_PTCR_TRIGGER, 0x1 << fan_tach_ch); in aspeed_get_fan_tach_ch_rpm()
[all …]
Daspeed-g6-pwm-tach.c302 u8 fan_tach_ch) in aspeed_get_fan_tach_ch_rpm() argument
306 val = readl(priv->base + TACH_ASPEED_STS(fan_tach_ch)); in aspeed_get_fan_tach_ch_rpm()