From d870374b5c7452c9ee7bbf028168efdba13365bc Mon Sep 17 00:00:00 2001 From: Alexandre Bourdiol Date: Fri, 30 Apr 2021 14:27:13 +0200 Subject: [PATCH] boards: ronoth_lodev: Use dts for clocks configuration Convert board to use of device tree for clocks configuration. Signed-off-by: Alexandre Bourdiol --- boards/arm/ronoth_lodev/ronoth_lodev.dts | 12 ++++++++++++ boards/arm/ronoth_lodev/ronoth_lodev_defconfig | 7 +------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/boards/arm/ronoth_lodev/ronoth_lodev.dts b/boards/arm/ronoth_lodev/ronoth_lodev.dts index 3df7d161d7c..bf464d54739 100644 --- a/boards/arm/ronoth_lodev/ronoth_lodev.dts +++ b/boards/arm/ronoth_lodev/ronoth_lodev.dts @@ -106,6 +106,18 @@ }; }; +&clk_hsi { + status = "okay"; +}; + +&rcc { + clocks = <&clk_hsi>; + clock-frequency = ; + ahb-prescaler = <1>; + apb1-prescaler = <1>; + apb2-prescaler = <1>; +}; + &usart1 { pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>; current-speed = <115200>; diff --git a/boards/arm/ronoth_lodev/ronoth_lodev_defconfig b/boards/arm/ronoth_lodev/ronoth_lodev_defconfig index e1175de14e1..eb42f9c29b0 100644 --- a/boards/arm/ronoth_lodev/ronoth_lodev_defconfig +++ b/boards/arm/ronoth_lodev/ronoth_lodev_defconfig @@ -8,9 +8,6 @@ CONFIG_SOC_SERIES_STM32L0X=y # Platform Configuration CONFIG_SOC_STM32L073XX=y -# General Kernel Options -CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=16000000 - # Enable MPU CONFIG_ARM_MPU=y @@ -27,7 +24,5 @@ CONFIG_PINMUX=y # GPIO Controller CONFIG_GPIO=y -# Clock configuration +# Enable Clocks CONFIG_CLOCK_CONTROL=y -# SYSCLK selection -CONFIG_CLOCK_STM32_SYSCLK_SRC_HSI=y