]> 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)
commit7243580a3f5fe1febba3c295504eb369c01cd7ac
tree7cac5757b00b73ca2ff3c22a6a21e75109e1856b
parentfedbd783dfdfa040524ea8eb8a31cb2a775a133b
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