Commit e0bcc58d authored by Benjamin Gaignard's avatar Benjamin Gaignard Committed by Lee Jones

mfd: stm32: Add defines to be used for clkevent purpose

Add defines to be able to enable/clear irq and configure one shot mode.
Signed-off-by: default avatarBenjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent cb8ae6e1
...@@ -27,10 +27,15 @@ ...@@ -27,10 +27,15 @@
#define STM32_LPTIM_CMPOK BIT(3) #define STM32_LPTIM_CMPOK BIT(3)
/* STM32_LPTIM_ICR - bit fields */ /* STM32_LPTIM_ICR - bit fields */
#define STM32_LPTIM_ARRMCF BIT(1)
#define STM32_LPTIM_CMPOKCF_ARROKCF GENMASK(4, 3) #define STM32_LPTIM_CMPOKCF_ARROKCF GENMASK(4, 3)
/* STM32_LPTIM_IER - bit flieds */
#define STM32_LPTIM_ARRMIE BIT(1)
/* STM32_LPTIM_CR - bit fields */ /* STM32_LPTIM_CR - bit fields */
#define STM32_LPTIM_CNTSTRT BIT(2) #define STM32_LPTIM_CNTSTRT BIT(2)
#define STM32_LPTIM_SNGSTRT BIT(1)
#define STM32_LPTIM_ENABLE BIT(0) #define STM32_LPTIM_ENABLE BIT(0)
/* STM32_LPTIM_CFGR - bit fields */ /* STM32_LPTIM_CFGR - bit fields */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment