]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: stm32-timers: Add support for DMAs
authorFabrice Gasnier <fabrice.gasnier@st.com>
Wed, 16 May 2018 07:35:57 +0000 (09:35 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 16 May 2018 08:10:38 +0000 (09:10 +0100)
commit0b8daef4bc0fcaf744bde23e72bb6be4870b9bcc
tree7cac5757b00b73ca2ff3c22a6a21e75109e1856b
parent064bcb773e451d01c97b9b60772d30bcc3d5c90c
mfd: stm32-timers: Add support for DMAs

STM32 Timers can support up to 7 DMA requests:
- 4 channels, update, compare and trigger.
Optionally request part, or all DMAs from stm32-timers MFD core.

Also add routine to implement burst reads using DMA from timer registers.
This is exported. So, it can be used by child drivers, PWM capture
for instance (but not limited to).

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