boards: ronoth_lodev: Use dts for clocks configuration

Convert board to use of device tree for clocks configuration.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
This commit is contained in:
Alexandre Bourdiol 2021-04-30 14:27:13 +02:00 committed by Maureen Helm
commit d870374b5c
2 changed files with 13 additions and 6 deletions

View file

@ -106,6 +106,18 @@
};
};
&clk_hsi {
status = "okay";
};
&rcc {
clocks = <&clk_hsi>;
clock-frequency = <DT_FREQ_M(16)>;
ahb-prescaler = <1>;
apb1-prescaler = <1>;
apb2-prescaler = <1>;
};
&usart1 {
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
current-speed = <115200>;

View file

@ -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