diff options
author | Yann Gautier <yann.gautier@st.com> | 2019-05-07 18:49:33 +0200 |
---|---|---|
committer | Yann Gautier <yann.gautier@st.com> | 2019-06-17 14:03:51 +0200 |
commit | d4151d2ff99cba5a1703b647f84db8882a05eab7 (patch) | |
tree | d5167eaea93bf19da9fd7a85bd0fd7471d66db19 /lib/libc | |
parent | f66358afeeea6b78912b1c59b0e87f9b96451d5f (diff) |
clk: stm32mp1: use defines for mask values in stm32mp1_clk_sel array
Rework the macro that eases the table definition: the src and msk fields
are now using MASK and SHIFT defines of each source register.
Some macros had then to be modified: _USART1_SEL, _ASS_SEL and _MSS_SEL to
_UART1_SEL, _AXIS_SEL, and _MCUS_SEL to match register fields.
Note: the mask for RCC_ASSCKSELR_AXISSRC is changed from 0x3 to 0x7
to reflect the size of the register field, even if there are only
3 possible clock sources.
The mask value is also corrected for QSPI and FMC clock selection.
Change-Id: I44114e3c1dd37b9fa1be1ba519611abd9a07764c
Signed-off-by: Yann Gautier <yann.gautier@st.com>
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions