pwm: sti: Add PWM capture callback
authorLee Jones <lee.jones@linaro.org>
Tue, 16 Aug 2016 09:35:05 +0000 (10:35 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 8 Sep 2016 08:55:11 +0000 (10:55 +0200)
commitc97267ae831da2711e9592398d490dbd1f4d5ddd
tree1e070d4104d060eab3751dc1cd3413e8b382925b
parent25eb53809674a875c64da7f6e1ab9695684e431a
pwm: sti: Add PWM capture callback

Once a PWM capture has been initiated, the capture call enables a rising
edge detection interrupt, then waits. Once each of the 3 phase changes
have been recorded the thread then wakes. The remaining part of the call
carries out the relevant calculations and returns a structure filled out
with the capture data.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-sti.c