Home
last modified time | relevance | path

Searched refs:src_clk (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/drivers/clock_control/
Dclock_stm32_ll_h5.c119 int enabled_clock(uint32_t src_clk) in enabled_clock() argument
121 if ((src_clk == STM32_SRC_SYSCLK) || in enabled_clock()
122 (src_clk == STM32_SRC_HCLK) || in enabled_clock()
123 (src_clk == STM32_SRC_PCLK1) || in enabled_clock()
124 (src_clk == STM32_SRC_PCLK2) || in enabled_clock()
125 (src_clk == STM32_SRC_PCLK3) || in enabled_clock()
126 ((src_clk == STM32_SRC_HSE) && IS_ENABLED(STM32_HSE_ENABLED)) || in enabled_clock()
127 ((src_clk == STM32_SRC_HSI) && IS_ENABLED(STM32_HSI_ENABLED)) || in enabled_clock()
128 ((src_clk == STM32_SRC_HSI48) && IS_ENABLED(STM32_HSI48_ENABLED)) || in enabled_clock()
129 ((src_clk == STM32_SRC_LSE) && IS_ENABLED(STM32_LSE_ENABLED)) || in enabled_clock()
[all …]
Dclock_stm32_ll_u5.c124 int enabled_clock(uint32_t src_clk) in enabled_clock() argument
126 if ((src_clk == STM32_SRC_SYSCLK) || in enabled_clock()
127 (src_clk == STM32_SRC_HCLK) || in enabled_clock()
128 (src_clk == STM32_SRC_PCLK1) || in enabled_clock()
129 (src_clk == STM32_SRC_PCLK2) || in enabled_clock()
130 (src_clk == STM32_SRC_PCLK3) || in enabled_clock()
131 ((src_clk == STM32_SRC_HSE) && IS_ENABLED(STM32_HSE_ENABLED)) || in enabled_clock()
132 ((src_clk == STM32_SRC_HSI16) && IS_ENABLED(STM32_HSI_ENABLED)) || in enabled_clock()
133 ((src_clk == STM32_SRC_HSI48) && IS_ENABLED(STM32_HSI48_ENABLED)) || in enabled_clock()
134 ((src_clk == STM32_SRC_LSE) && IS_ENABLED(STM32_LSE_ENABLED)) || in enabled_clock()
[all …]
Dclock_stm32_ll_wba.c44 int enabled_clock(uint32_t src_clk) in enabled_clock() argument
46 if ((src_clk == STM32_SRC_SYSCLK) || in enabled_clock()
47 (src_clk == STM32_SRC_HCLK1) || in enabled_clock()
48 (src_clk == STM32_SRC_HCLK5) || in enabled_clock()
49 (src_clk == STM32_SRC_PCLK1) || in enabled_clock()
50 (src_clk == STM32_SRC_PCLK2) || in enabled_clock()
51 (src_clk == STM32_SRC_PCLK7) || in enabled_clock()
52 ((src_clk == STM32_SRC_HSE) && IS_ENABLED(STM32_HSE_ENABLED)) || in enabled_clock()
53 ((src_clk == STM32_SRC_HSI16) && IS_ENABLED(STM32_HSI_ENABLED)) || in enabled_clock()
54 ((src_clk == STM32_SRC_LSE) && IS_ENABLED(STM32_LSE_ENABLED)) || in enabled_clock()
[all …]
Dclock_stm32_ll_h7.c358 int enabled_clock(uint32_t src_clk) argument
361 if ((src_clk == STM32_SRC_SYSCLK) ||
362 ((src_clk == STM32_SRC_CKPER) && IS_ENABLED(STM32_CKPER_ENABLED)) ||
363 ((src_clk == STM32_SRC_HSE) && IS_ENABLED(STM32_HSE_ENABLED)) ||
364 ((src_clk == STM32_SRC_HSI_KER) && IS_ENABLED(STM32_HSI_ENABLED)) ||
365 ((src_clk == STM32_SRC_CSI_KER) && IS_ENABLED(STM32_CSI_ENABLED)) ||
366 ((src_clk == STM32_SRC_HSI48) && IS_ENABLED(STM32_HSI48_ENABLED)) ||
367 ((src_clk == STM32_SRC_LSE) && IS_ENABLED(STM32_LSE_ENABLED)) ||
368 ((src_clk == STM32_SRC_LSI) && IS_ENABLED(STM32_LSI_ENABLED)) ||
369 ((src_clk == STM32_SRC_PLL1_P) && IS_ENABLED(STM32_PLL_P_ENABLED)) ||
[all …]
Dclock_stm32_ll_common.h62 int enabled_clock(uint32_t src_clk);
Dclock_stm32_ll_wb0.c179 int enabled_clock(uint32_t src_clk) in enabled_clock() argument
183 switch (src_clk) { in enabled_clock()
Dclock_stm32_ll_common.c120 int enabled_clock(uint32_t src_clk) in enabled_clock() argument
124 switch (src_clk) { in enabled_clock()
/Zephyr-latest/drivers/serial/
Duart_npcx.c120 static int uart_set_npcx_baud_rate(struct uart_reg *const inst, int baud_rate, int src_clk) in uart_set_npcx_baud_rate() argument
128 if (src_clk == MHZ(15)) { in uart_set_npcx_baud_rate()
131 } else if (src_clk == MHZ(20)) { in uart_set_npcx_baud_rate()
134 } else if (src_clk == MHZ(25)) { in uart_set_npcx_baud_rate()
137 } else if (src_clk == MHZ(30)) { in uart_set_npcx_baud_rate()
140 } else if (src_clk == MHZ(48)) { in uart_set_npcx_baud_rate()
143 } else if (src_clk == MHZ(50)) { in uart_set_npcx_baud_rate()
150 if (src_clk == MHZ(48)) { in uart_set_npcx_baud_rate()
Duart_esp32.c203 uart_sclk_t src_clk; in uart_esp32_config_get() local
207 uart_hal_get_sclk(&data->hal, &src_clk); in uart_esp32_config_get()
208 esp_clk_tree_src_get_freq_hz((soc_module_clk_t)src_clk, in uart_esp32_config_get()
286 uart_sclk_t src_clk; in uart_esp32_configure() local
368 uart_hal_get_sclk(&data->hal, &src_clk); in uart_esp32_configure()
369 esp_clk_tree_src_get_freq_hz((soc_module_clk_t)src_clk, in uart_esp32_configure()