Home
last modified time | relevance | path

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

/openbmc/linux/drivers/pwm/
H A Dpwm-microchip-core.c156 u8 posedge, negedge; in mchp_core_pwm_apply_duty() local
170 posedge = second_edge; in mchp_core_pwm_apply_duty()
172 posedge = first_edge; in mchp_core_pwm_apply_duty()
181 writel_relaxed(posedge, mchp_core_pwm->base + MCHPCOREPWM_POSEDGE(pwm->hwpwm)); in mchp_core_pwm_apply_duty()
383 u8 duty_steps, posedge, negedge; in mchp_core_pwm_get_state() local
416 posedge = readb_relaxed(mchp_core_pwm->base + MCHPCOREPWM_POSEDGE(pwm->hwpwm)); in mchp_core_pwm_get_state()
421 if (negedge == posedge) { in mchp_core_pwm_get_state()
425 duty_steps = abs((s16)posedge - (s16)negedge); in mchp_core_pwm_get_state()
430 state->polarity = negedge < posedge ? PWM_POLARITY_INVERSED : PWM_POLARITY_NORMAL; in mchp_core_pwm_get_state()