clk: stm32mp1: fix CK_MPU calculation
authorLionel Debieve <lionel.debieve@st.com>
Fri, 24 Apr 2020 13:47:57 +0000 (15:47 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Thu, 14 May 2020 07:02:12 +0000 (09:02 +0200)
commit36911fca63162d8309c2bc6443028b56a6411870
treec1d4fdc0c212b63fd404eadce061b07b2b255859
parentd7244e4a1fe72c9fbd63f74489099051887b2e89
clk: stm32mp1: fix CK_MPU calculation

When the CK_MPU used PLL1_MPUDIV, the current rate is
wrong. The clock must use stm32mp1_mpu_div as a shift
value. Fix the check value used to enter PLL_MPUDIV.

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