Home
last modified time | relevance | path

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

/openbmc/linux/drivers/pwm/
H A Dpwm-raspberrypi-poe.c24 #define RPI_PWM_PERIOD_NS 80000 /* 12.5 kHz */ macro
91 state->period = RPI_PWM_PERIOD_NS; in raspberrypi_pwm_get_state()
92 state->duty_cycle = DIV_ROUND_UP(rpipwm->duty_cycle * RPI_PWM_PERIOD_NS, in raspberrypi_pwm_get_state()
107 if (state->period < RPI_PWM_PERIOD_NS || in raspberrypi_pwm_apply()
113 else if (state->duty_cycle < RPI_PWM_PERIOD_NS) in raspberrypi_pwm_apply()
115 RPI_PWM_PERIOD_NS); in raspberrypi_pwm_apply()