]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Add STM32 Timers driver
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Fri, 20 Jan 2017 09:15:03 +0000 (10:15 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 23 Jan 2017 12:03:57 +0000 (12:03 +0000)
commit64a989b7f125d8e0009aa1a4d3557dfc7acb8981
tree5b443357a8208a29a75d073ff680d0c671e15607
parentef1eacd1f7083556cf0a181e11e515f0b4d3d336
mfd: Add STM32 Timers driver

This hardware block could at used at same time for PWM generation
and IIO timers.
PWM and IIO timer configuration are mixed in the same registers
so we need a multi fonction driver to be able to share those registers.

version 7:
- rebase on v4.10-rc2

version 6:
- rename files to stm32-timers
- rename functions to stm32_timers_xxx

version 5:
- fix Lee comments about detect function
- add missing dependency on REGMAP_MMIO

version 4:
- add a function to detect Auto Reload Register (ARR) size
- rename the structure shared with other drivers

version 2:
- rename driver "stm32-gptimer" to be align with SoC documentation
- only keep one compatible
- use of_platform_populate() instead of devm_mfd_add_devices()

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/Kconfig
drivers/mfd/Makefile
drivers/mfd/stm32-timers.c [new file with mode: 0644]
include/linux/mfd/stm32-timers.h [new file with mode: 0644]