Home
last modified time | relevance | path

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

/linux/drivers/hwmon/
H A Daspeed-pwm-tacho.c246 struct pwm_port_params { struct
258 static const struct pwm_port_params pwm_port_params[] = { argument
405 regmap_update_bits(regmap, pwm_port_params[pwm_port].ctrl_reg, in aspeed_set_pwm_port_enable()
406 pwm_port_params[pwm_port].pwm_en, in aspeed_set_pwm_port_enable()
407 enable ? pwm_port_params[pwm_port].pwm_en : 0); in aspeed_set_pwm_port_enable()
413 u32 reg_value = (type & 0x1) << pwm_port_params[pwm_port].type_part1; in aspeed_set_pwm_port_type()
415 reg_value |= (type & 0x2) << pwm_port_params[pwm_port].type_part2; in aspeed_set_pwm_port_type()
417 regmap_update_bits(regmap, pwm_port_params[pwm_port].ctrl_reg, in aspeed_set_pwm_port_type()
418 pwm_port_params[pwm_port].type_mask, reg_value); in aspeed_set_pwm_port_type()
426 pwm_port_params[pwm_port].duty_ctrl_rise_point); in aspeed_set_pwm_port_duty_rising_falling()
[all …]