mirror of
https://github.com/apache/nuttx.git
synced 2026-08-16 01:43:15 +00:00
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:
parent
2b2f3bf263
commit
c708f66aea
2 changed files with 14 additions and 2 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue