stm32h7:stm32h7x3xx_rcc SDMMC2EN is in RCC_AHB2ENR
This commit is contained in:
parent
21a96c4784
commit
19111d9d85
@ -263,7 +263,12 @@ static inline void rcc_enableahb2(void)
|
||||
|
||||
regval = getreg32(STM32_RCC_AHB2ENR);
|
||||
|
||||
/* TODO: ... */
|
||||
#ifdef CONFIG_STM32H7_SDMMC2
|
||||
/* SDMMC clock enable */
|
||||
|
||||
regval |= RCC_AHB2ENR_SDMMC2EN;
|
||||
#endif
|
||||
|
||||
|
||||
putreg32(regval, STM32_RCC_AHB2ENR); /* Enable peripherals */
|
||||
}
|
||||
@ -486,12 +491,6 @@ static inline void rcc_enableapb2(void)
|
||||
regval |= RCC_APB2ENR_SPI5EN;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_STM32H7_SDMMC2
|
||||
/* SDMMC2 clock enable */
|
||||
|
||||
regval |= RCC_APB2ENR_SDMMC2EN;
|
||||
#endif
|
||||
|
||||
putreg32(regval, STM32_RCC_APB2ENR); /* Enable peripherals */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user