3 * Vikas Manocha, ST Micoelectronics, vikas.manocha@st.com.
5 * SPDX-License-Identifier: GPL-2.0+
11 #include <asm/arch/stm32.h>
37 struct gpt_regs *const gpt1_regs_ptr =
38 (struct gpt_regs *)TIM2_BASE;
40 /* Timer control1 register */
41 #define GPT_CR1_CEN BIT(0)
42 #define GPT_MODE_AUTO_RELOAD BIT(7)
44 /* Auto reload register for free running config */
45 #define GPT_FREE_RUNNING 0xFFFFFFFF
47 /* Timer, HZ specific defines */
48 #define CONFIG_STM32_HZ 1000
50 /* Timer Event Generation registers */
51 #define TIM_EGR_UG BIT(0)