clk: stm32mp1: use defines for mask values in stm32mp1_clk_sel array
authorYann Gautier <yann.gautier@st.com>
Tue, 7 May 2019 16:49:33 +0000 (18:49 +0200)
committerYann Gautier <yann.gautier@st.com>
Mon, 17 Jun 2019 12:03:51 +0000 (14:03 +0200)
commitd4151d2ff99cba5a1703b647f84db8882a05eab7
treed5167eaea93bf19da9fd7a85bd0fd7471d66db19
parentf66358afeeea6b78912b1c59b0e87f9b96451d5f
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>
drivers/st/clk/stm32mp1_clk.c
include/drivers/st/stm32mp1_rcc.h