Skip to content
Commit 3b8b2668 authored by Etienne Carriere's avatar Etienne Carriere Committed by Benjamin Cabé
Browse files

include: zephyr: dt-bindings: clock: factorize STM32_* clock source macros



Factorize definitions of the macros used to describe in the STM32
boards device tree the RCC register dedicated to clock source selection
configuration, instead of replicating the macros per SoC header file.
For that purpose, use DT cell bit fields that matches all SoCs.

This change also factorizes STM32_MCO_CFGR_* macros that use the same
packing layout for defining selection of the MCO clocks and for MCO
pre-scaling factor on SoCs that support the feature.

By the way, reorder argument description in macro inline description
comment in a standard way (first argument first).

Signed-off-by: default avatarEtienne Carriere <etienne.carriere@st.com>
parent af6d97dc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment