counter: stm32-timer-cnt: Provide defines for slave mode selection
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Fri, 27 Aug 2021 03:47:46 +0000 (12:47 +0900)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 17 Oct 2021 09:52:46 +0000 (10:52 +0100)
commitea434ff82649111de4fcabd76187270f8abdb63a
treeca440b651270ee950752f18bd14db5525d10c1c1
parent05593a3fd1037b5fee85d3c8c28112f19e7baa06
counter: stm32-timer-cnt: Provide defines for slave mode selection

The STM32 timer permits configuration of the counter encoder mode via
the slave mode control register (SMCR) slave mode selection (SMS) bits.
This patch provides preprocessor defines for the supported encoder
modes.

Cc: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Reviewed-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Link: https://lore.kernel.org/r/ad3d9cd7af580d586316d368f74964cbc394f981.1630031207.git.vilhelm.gray@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/counter/stm32-timer-cnt.c
include/linux/mfd/stm32-timers.h