From 60d490f9b11f415c85e4c35514b27a63afed3736 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 18 Oct 2018 10:01:46 -0600 Subject: [PATCH] configs/bambino-200e/include/board.h: Correct calculation of SDMMC clock configuration. The LPC43 has no SDMMC source clock divider. Error noted by Dave Marples. --- configs/bambino-200e/include/board.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/bambino-200e/include/board.h b/configs/bambino-200e/include/board.h index 7c4030a149..77430424a0 100644 --- a/configs/bambino-200e/include/board.h +++ b/configs/bambino-200e/include/board.h @@ -233,7 +233,7 @@ #define BOARD_SDMMC_MAXFREQ 50000000 #define BOARD_SDMMC_CEIL(a,b) (((a) + (b) - 1) / (b)) -#define BOARD_SDMMC_CLKDIV BOARD_SDMMC_CEIL(BOARD_MAIN_CLK, BOARD_SDMMC_MAXFREQ) +#define BOARD_SDMMC_CLKDIV (1) /* No source clock divider */ #define BOARD_SDMMC_FREQUENCY (BOARD_MAIN_CLK / BOARD_SDMMC_CLKDIV) /* Mode-dependent function clock division