Searched refs:hi_pwm_chip (Results 1 – 1 of 1) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/pwm/ |
| H A D | pwm-hibvt.c | 85 struct hibvt_pwm_chip *hi_pwm_chip = to_hibvt_pwm_chip(chip); in hibvt_pwm_enable() local 87 hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CTRL_ADDR(pwm->hwpwm), in hibvt_pwm_enable() 93 struct hibvt_pwm_chip *hi_pwm_chip = to_hibvt_pwm_chip(chip); in hibvt_pwm_disable() local 95 hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CTRL_ADDR(pwm->hwpwm), in hibvt_pwm_disable() 102 struct hibvt_pwm_chip *hi_pwm_chip = to_hibvt_pwm_chip(chip); in hibvt_pwm_config() local 105 freq = div_u64(clk_get_rate(hi_pwm_chip->clk), 1000000); in hibvt_pwm_config() 110 hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CFG0_ADDR(pwm->hwpwm), in hibvt_pwm_config() 113 hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CFG1_ADDR(pwm->hwpwm), in hibvt_pwm_config() 121 struct hibvt_pwm_chip *hi_pwm_chip = to_hibvt_pwm_chip(chip); in hibvt_pwm_set_polarity() local 124 hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CTRL_ADDR(pwm->hwpwm), in hibvt_pwm_set_polarity() [all …]
|