Support specifying divided clock buses by introduction of STM32_CLOCK_DIV(div) macro. This macro can be used in devicetree to define clock source of peripherals. HSE is selected in devicetree using: <&rcc STM32_SRC_HSE ...>; HSE/2 can now be selected with: <&rcc (STM32_SRC_HSE | STM32_CLOCK_DIV(2)) ...>; This allows to use clock_control_get_rate() API in peripherals in order to get desired clock rate. Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev> |
||
|---|---|---|
| .. | ||
| arc/synopsys | ||
| arm | ||
| arm64 | ||
| bindings | ||
| common | ||
| nios2/intel | ||
| posix | ||
| riscv | ||
| sparc/gaisler | ||
| x86/intel | ||
| xtensa | ||
| binding-template.yaml | ||
| Kconfig | ||