mfd: stm32: Add defines to be used for clkevent purpose
authorBenjamin Gaignard <benjamin.gaignard@st.com>
Wed, 3 Jun 2020 12:54:36 +0000 (14:54 +0200)
committerLee Jones <lee.jones@linaro.org>
Thu, 18 Jun 2020 10:19:42 +0000 (11:19 +0100)
Add defines to be able to enable/clear irq and configure one shot mode.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
include/linux/mfd/stm32-lptimer.h

index 605f622..90b2055 100644 (file)
 #define STM32_LPTIM_CMPOK              BIT(3)
 
 /* STM32_LPTIM_ICR - bit fields */
+#define STM32_LPTIM_ARRMCF             BIT(1)
 #define STM32_LPTIM_CMPOKCF_ARROKCF    GENMASK(4, 3)
 
+/* STM32_LPTIM_IER - bit flieds */
+#define STM32_LPTIM_ARRMIE     BIT(1)
+
 /* STM32_LPTIM_CR - bit fields */
 #define STM32_LPTIM_CNTSTRT    BIT(2)
+#define STM32_LPTIM_SNGSTRT    BIT(1)
 #define STM32_LPTIM_ENABLE     BIT(0)
 
 /* STM32_LPTIM_CFGR - bit fields */