Home
last modified time | relevance | path

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

/drivers/hwmon/
Daspeed-pwm-tacho.c245 struct pwm_port_params { struct
257 static const struct pwm_port_params pwm_port_params[] = { argument
404 regmap_update_bits(regmap, pwm_port_params[pwm_port].ctrl_reg, in aspeed_set_pwm_port_enable()
405 pwm_port_params[pwm_port].pwm_en, in aspeed_set_pwm_port_enable()
406 enable ? pwm_port_params[pwm_port].pwm_en : 0); in aspeed_set_pwm_port_enable()
412 u32 reg_value = (type & 0x1) << pwm_port_params[pwm_port].type_part1; in aspeed_set_pwm_port_type()
414 reg_value |= (type & 0x2) << pwm_port_params[pwm_port].type_part2; in aspeed_set_pwm_port_type()
416 regmap_update_bits(regmap, pwm_port_params[pwm_port].ctrl_reg, in aspeed_set_pwm_port_type()
417 pwm_port_params[pwm_port].type_mask, reg_value); in aspeed_set_pwm_port_type()
425 pwm_port_params[pwm_port].duty_ctrl_rise_point); in aspeed_set_pwm_port_duty_rising_falling()
[all …]