boards: google_kukui: 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 17:21:32 +02:00 committed by Kumar Gala
commit a9037435c0
2 changed files with 12 additions and 8 deletions

View file

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

View file

@ -24,12 +24,5 @@ CONFIG_PINMUX=y
# GPIO Controller # GPIO Controller
CONFIG_GPIO=y CONFIG_GPIO=y
# Clock configuration # Enable Clocks
CONFIG_CLOCK_CONTROL=y CONFIG_CLOCK_CONTROL=y
# Ideally, we would use HSI48, but this is not supported in
# Zephyr. Use "basic" HSI (8 MHz).
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=8000000
# SYSCLK selection
CONFIG_CLOCK_STM32_SYSCLK_SRC_HSI=y