Allow board to configure HSE clock in bypass-mode. This is needed to enable HSE with Nucleo-F746ZG board.

This commit is contained in:
Jussi Kivilinna
2017-02-17 07:15:22 -06:00
committed by Gregory Nutt
parent 351d46444c
commit dd1aa2357b
@@ -687,6 +687,11 @@ static void stm32_stdclockconfig(void)
/* Enable External High-Speed Clock (HSE) */
regval = getreg32(STM32_RCC_CR);
#ifdef STM32_HSEBYP_ENABLE /* May be defined in board.h header file */
regval |= RCC_CR_HSEBYP; /* Enable HSE clock bypass */
#else
regval &= ~RCC_CR_HSEBYP; /* Disable HSE clock bypass */
#endif
regval |= RCC_CR_HSEON; /* Enable HSE */
putreg32(regval, STM32_RCC_CR);