stm32mp1: use unsigned values for SDMMC defines
authorYann Gautier <yann.gautier@st.com>
Thu, 9 May 2019 11:25:52 +0000 (13:25 +0200)
committerYann Gautier <yann.gautier@st.com>
Mon, 17 Jun 2019 12:03:51 +0000 (14:03 +0200)
Correct SDMMC macros to define unsigned values as expected by the
driver implementation.

Change-Id: Ib009f3df2cf26a9759d129eb571a27b2564770ce
Signed-off-by: Yann Gautier <yann.gautier@st.com>
plat/st/stm32mp1/stm32mp1_def.h

index c6fb692eadcc574bb1d3c33476ed57137817bfa9..2ec9487674a2ed305b007e205903fe68d8ce56ce 100644 (file)
@@ -223,11 +223,11 @@ enum ddr_type {
 #define STM32MP_SDMMC2_BASE            U(0x58007000)
 #define STM32MP_SDMMC3_BASE            U(0x48004000)
 
-#define STM32MP_MMC_INIT_FREQ                  400000          /*400 KHz*/
-#define STM32MP_SD_NORMAL_SPEED_MAX_FREQ       25000000        /*25 MHz*/
-#define STM32MP_SD_HIGH_SPEED_MAX_FREQ         50000000        /*50 MHz*/
-#define STM32MP_EMMC_NORMAL_SPEED_MAX_FREQ     26000000        /*26 MHz*/
-#define STM32MP_EMMC_HIGH_SPEED_MAX_FREQ       52000000        /*52 MHz*/
+#define STM32MP_MMC_INIT_FREQ                  U(400000)       /*400 KHz*/
+#define STM32MP_SD_NORMAL_SPEED_MAX_FREQ       U(25000000)     /*25 MHz*/
+#define STM32MP_SD_HIGH_SPEED_MAX_FREQ         U(50000000)     /*50 MHz*/
+#define STM32MP_EMMC_NORMAL_SPEED_MAX_FREQ     U(26000000)     /*26 MHz*/
+#define STM32MP_EMMC_HIGH_SPEED_MAX_FREQ       U(52000000)     /*52 MHz*/
 
 /*******************************************************************************
  * STM32MP1 BSEC / OTP