From 6aaad93e6f32ec769bc9336732174c0a7fbeb170 Mon Sep 17 00:00:00 2001 From: Alexandre Bourdiol Date: Fri, 27 Mar 2020 09:41:17 +0100 Subject: [PATCH] board: nucleo_l152re: Revert "board: nucleo_l152re: Limit sysfreq to 16MHz" This reverts commit 3fba0cb5d1543e6f712d6c0414030ffd98d03b5b. Fixes #23762 Signed-off-by: Alexandre Bourdiol --- boards/arm/nucleo_l152re/doc/index.rst | 7 ------- boards/arm/nucleo_l152re/nucleo_l152re_defconfig | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/boards/arm/nucleo_l152re/doc/index.rst b/boards/arm/nucleo_l152re/doc/index.rst index d17cd466f4b9..c42fef2e4a1a 100644 --- a/boards/arm/nucleo_l152re/doc/index.rst +++ b/boards/arm/nucleo_l152re/doc/index.rst @@ -96,13 +96,6 @@ Other hardware features are not yet supported in this Zephyr port. The default configuration can be found in the defconfig file: ``boards/arm/nucleo_l152re/nucleo_l152re_defconfig`` -System Clock -============ - -Nucleo L152RE System Clock could be driven by internal or external oscillator, -as well as main PLL clock. It should theoretically support running at 32MHz, -but a bug (under investigation) limits operations to 16MHz. - Connections and IOs =================== diff --git a/boards/arm/nucleo_l152re/nucleo_l152re_defconfig b/boards/arm/nucleo_l152re/nucleo_l152re_defconfig index 298ece5b935a..46aa0f070628 100644 --- a/boards/arm/nucleo_l152re/nucleo_l152re_defconfig +++ b/boards/arm/nucleo_l152re/nucleo_l152re_defconfig @@ -4,7 +4,7 @@ CONFIG_SOC_SERIES_STM32L1X=y CONFIG_SOC_STM32L152XE=y CONFIG_CORTEX_M_SYSTICK=y # 32MHz system clock -CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=16000000 +CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=32000000 # enable uart driver CONFIG_SERIAL=y @@ -24,7 +24,7 @@ CONFIG_CLOCK_CONTROL=y CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL=y # Use HSI source CONFIG_CLOCK_STM32_PLL_SRC_HSI=y -CONFIG_CLOCK_STM32_PLL_DIVISOR=4 +CONFIG_CLOCK_STM32_PLL_DIVISOR=2 # produce 32Mhz clock at PLL output CONFIG_CLOCK_STM32_PLL_MULTIPLIER=4 CONFIG_CLOCK_STM32_AHB_PRESCALER=1