summaryrefslogtreecommitdiff
path: root/include/linux/mfd/stm32-lptimer.h
diff options
context:
space:
mode:
authorBenjamin Gaignard <benjamin.gaignard@st.com>2020-06-03 15:54:36 +0300
committerLee Jones <lee.jones@linaro.org>2020-06-18 13:19:42 +0300
commite0bcc58d876c6ece9720310509a908b7637e37cf (patch)
tree6133d043c60118471102bb8e428009330749db5e /include/linux/mfd/stm32-lptimer.h
parentcb8ae6e188a2230a2515493918385dd054e14fa1 (diff)
downloadlinux-e0bcc58d876c6ece9720310509a908b7637e37cf.tar.xz
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: Benjamin Gaignard <benjamin.gaignard@st.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd/stm32-lptimer.h')
-rw-r--r--include/linux/mfd/stm32-lptimer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mfd/stm32-lptimer.h b/include/linux/mfd/stm32-lptimer.h
index 605f62264825..90b20550c1c8 100644
--- a/include/linux/mfd/stm32-lptimer.h
+++ b/include/linux/mfd/stm32-lptimer.h
@@ -27,10 +27,15 @@
#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 */