clk: stm32mp1: correctly handle Clock Spreading Generator
authorYann Gautier <yann.gautier@st.com>
Tue, 4 Jun 2019 13:55:37 +0000 (15:55 +0200)
committerYann Gautier <yann.gautier@st.com>
Mon, 17 Jun 2019 12:03:51 +0000 (14:03 +0200)
commitdd98aec87ca83054c9bc7502d018e46b02536eb1
tree64a6e0de66ab7c1ba538dd25fbdbbc1ae5a17983
parentd4151d2ff99cba5a1703b647f84db8882a05eab7
clk: stm32mp1: correctly handle Clock Spreading Generator

To activate the CSG option, the driver needs to set the bit2
of PLLNCR register = SSCG_CTRL: Spread Spectrum Clock Generator.
This bit should not be cleared when starting the PLL.

Change-Id: Ie5c720ff03655f27a7e7e9e7ccf8295dd046112f
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Yann Gautier <yann.gautier@st.com>
drivers/st/clk/stm32mp1_clk.c