]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit90190b22f56269a19bceb59b8c7c05706961f7b9
tree651de9728b344508bd13cdaef87b4560d9ab0947
parent083f9f4deb42a50f45fd50ad54ed3f81b5f58f41
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