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)
commit0c6609805b638debcb7d9d44556546b043ded2e9
tree7cac5757b00b73ca2ff3c22a6a21e75109e1856b
parent60cc43fc888428bb2f18f08997432d426a243338
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