Squashed commit of the following:

commit 7fd1f0d78546fa0315f4077b779efdd884e5bd53
Author: William Douglas <william@rocklandscientific.com>
Date:   Tue May 15 13:19:31 2018 -0700

    Add support for the second SDMMC device.

    The second SDMMC device was already supported but
    the clock was never enabled.  This fixes that.
This commit is contained in:
William Douglas 2018-05-15 17:08:20 -06:00 committed by Gregory Nutt
parent 2b2f3bf263
commit c708f66aea
2 changed files with 14 additions and 2 deletions

View File

@ -585,11 +585,17 @@ static inline void rcc_enableapb2(void)
#endif
#ifdef CONFIG_STM32F7_SDMMC1
/* SDIO clock enable */
/* SDIO_1 clock enable */
regval |= RCC_APB2ENR_SDMMC1EN;
#endif
#ifdef CONFIG_STM32F7_SDMMC2
/* SDIO_2 clock enable */
regval |= RCC_APB2ENR_SDMMC2EN;
#endif
#ifdef CONFIG_STM32F7_SPI1
/* SPI1 clock enable */

View File

@ -590,11 +590,17 @@ static inline void rcc_enableapb2(void)
#endif
#ifdef CONFIG_STM32F7_SDMMC1
/* SDIO clock enable */
/* SDIO_1 clock enable */
regval |= RCC_APB2ENR_SDMMC1EN;
#endif
#ifdef CONFIG_STM32F7_SDMMC2
/* SDIO_2 clock enable */
regval |= RCC_APB2ENR_SDMMC2EN;
#endif
#ifdef CONFIG_STM32F7_SPI1
/* SPI1 clock enable */