Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/pwm/
Dpwm-raspberrypi-poe.c89 struct raspberrypi_pwm *rpipwm = raspberrypi_pwm_from_chip(chip); in raspberrypi_pwm_get_state() local
92 state->duty_cycle = DIV_ROUND_UP(rpipwm->duty_cycle * RPI_PWM_PERIOD_NS, in raspberrypi_pwm_get_state()
94 state->enabled = !!(rpipwm->duty_cycle); in raspberrypi_pwm_get_state()
101 struct raspberrypi_pwm *rpipwm = raspberrypi_pwm_from_chip(chip); in raspberrypi_pwm_apply() local
117 if (duty_cycle == rpipwm->duty_cycle) in raspberrypi_pwm_apply()
120 ret = raspberrypi_pwm_set_property(rpipwm->firmware, RPI_PWM_CUR_DUTY_REG, in raspberrypi_pwm_apply()
128 rpipwm->duty_cycle = duty_cycle; in raspberrypi_pwm_apply()
144 struct raspberrypi_pwm *rpipwm; in raspberrypi_pwm_probe() local
159 rpipwm = devm_kzalloc(&pdev->dev, sizeof(*rpipwm), GFP_KERNEL); in raspberrypi_pwm_probe()
160 if (!rpipwm) in raspberrypi_pwm_probe()
[all …]