]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arm/include/asm/arch-stm32f7/gpt.h
Merge git://git.denx.de/u-boot-fsl-qoriq
[people/ms/u-boot.git] / arch / arm / include / asm / arch-stm32f7 / gpt.h
index 903bdf63147226e938e7435dd0e1579df334469a..e9e0c142e0d4ab0c4b13d3dea22c47e8e8a9d696 100644 (file)
@@ -38,8 +38,8 @@ struct gpt_regs *const gpt1_regs_ptr =
        (struct gpt_regs *)TIM2_BASE;
 
 /* Timer control1 register  */
-#define GPT_CR1_CEN                    0x0001
-#define GPT_MODE_AUTO_RELOAD           (1 << 7)
+#define GPT_CR1_CEN                    BIT(0)
+#define GPT_MODE_AUTO_RELOAD           BIT(7)
 
 /* Auto reload register for free running config */
 #define GPT_FREE_RUNNING               0xFFFFFFFF
@@ -48,6 +48,6 @@ struct gpt_regs *const gpt1_regs_ptr =
 #define CONFIG_STM32_HZ                        1000
 
 /* Timer Event Generation registers */
-#define TIM_EGR_UG                     (1 << 0)
+#define TIM_EGR_UG                     BIT(0)
 
 #endif