clk: stm32mp1: recalculate counter when switching freq
authorPatrick Delaunay <patrick.delaunay@st.com>
Wed, 30 Jan 2019 12:07:03 +0000 (13:07 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 9 Feb 2019 12:50:56 +0000 (07:50 -0500)
commitf3a23c26097144de9ad08644a4bfc9c238df873a
tree651de9728b344508bd13cdaef87b4560d9ab0947
parent63201281e5e51116676bf3a2b028035856d3f2a6
clk: stm32mp1: recalculate counter when switching freq

Because stgen is initialized with HSI clock, we need to
recalculate the counter when changing frequency.

Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/clk/clk_stm32mp1.c