]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
clk: stm32mp1: fix HSI divider flag
authorGabriel Fernandez <gabriel.fernandez@st.com>
Thu, 14 Feb 2019 10:40:45 +0000 (11:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:21:34 +0000 (09:21 +0100)
commit d3f2e33c875de5052e032a9eefa64c897a930ed1 upstream.

The divider of HSI (clk-hsi-div) is power of two divider.

Fixes: 9bee94e7b7da ("clk: stm32mp1: Introduce STM32MP1 clock driver")
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/clk-stm32mp1.c

index a907555b2a3d8f5c7882e5be1e080eed5fda1767..d602ae72eb81d887826f49bd8293a7a14dc97899 100644 (file)
@@ -1655,8 +1655,8 @@ static const struct stm32_mux_cfg ker_mux_cfg[M_LAST] = {
 
 static const struct clock_config stm32mp1_clock_cfg[] = {
        /* Oscillator divider */
-       DIV(NO_ID, "clk-hsi-div", "clk-hsi", 0, RCC_HSICFGR, 0, 2,
-           CLK_DIVIDER_READ_ONLY),
+       DIV(NO_ID, "clk-hsi-div", "clk-hsi", CLK_DIVIDER_POWER_OF_TWO,
+           RCC_HSICFGR, 0, 2, CLK_DIVIDER_READ_ONLY),
 
        /*  External / Internal Oscillators */
        GATE_MP1(CK_HSE, "ck_hse", "clk-hse", 0, RCC_OCENSETR, 8, 0),