pwm: stm32: Use input prescaler to improve period capture
authorFabrice Gasnier <fabrice.gasnier@st.com>
Wed, 16 May 2018 07:36:00 +0000 (09:36 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 16 May 2018 08:11:19 +0000 (09:11 +0100)
commitab3a897847834bf3e864fb07b733c444895a24ba
treeb451c46ce5f7250e455fd71a3598267b8a7f5514
parentd66ffb91c374fc500fe666645184e278774bad38
pwm: stm32: Use input prescaler to improve period capture

Using input prescaler, capture unit will trigger DMA once every
configurable /2, /4 or /8 events (rising edge). This helps improve
period (only) capture accuracy at high rates.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Acked-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/pwm/pwm-stm32.c
include/linux/mfd/stm32-timers.h