counter: stm32-lptimer-cnt: Provide defines for clock polarities
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Fri, 27 Aug 2021 03:47:45 +0000 (12:47 +0900)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 17 Oct 2021 09:52:29 +0000 (10:52 +0100)
commit05593a3fd1037b5fee85d3c8c28112f19e7baa06
tree30eca0b5e8fc8de252fa783f8a16d32894ea3a7d
parent6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f
counter: stm32-lptimer-cnt: Provide defines for clock polarities

The STM32 low-power timer permits configuration of the clock polarity
via the LPTIMX_CFGR register CKPOL bits. This patch provides
preprocessor defines for the supported clock polarities.

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/a111c8905c467805ca530728f88189b59430f27e.1630031207.git.vilhelm.gray@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/counter/stm32-lptimer-cnt.c
include/linux/mfd/stm32-lptimer.h