stm32h7:stm32h7x3xx_rcc Select FDCAN clock source
This commit is contained in:
parent
3b75201447
commit
a4012bffa8
1 changed files with 9 additions and 0 deletions
|
|
@ -917,6 +917,15 @@ static void stm32_stdclockconfig(void)
|
|||
putreg32(regval, STM32_RCC_D3CCIPR);
|
||||
#endif
|
||||
|
||||
/* Configure FDCAN source clock */
|
||||
|
||||
#if defined(STM32_RCC_D2CCIP1R_FDCANSEL)
|
||||
regval = getreg32(STM32_RCC_D2CCIP1R);
|
||||
regval &= ~RCC_D2CCIP1R_FDCANSEL_MASK;
|
||||
regval |= STM32_RCC_D2CCIP1R_FDCANSEL;
|
||||
putreg32(regval, STM32_RCC_D2CCIP1R);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_STM32H7_IWDG) || defined(CONFIG_STM32H7_RTC_LSICLOCK)
|
||||
/* Low speed internal clock source LSI */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue