clk: rockchip: fix clk_i2sout parent selection bits on rk3399
authorAlberto Panizzo <alberto@amarulasolutions.com>
Fri, 6 Jul 2018 13:18:51 +0000 (15:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2018 07:20:11 +0000 (09:20 +0200)
commit a64ad008980c65d38e6cf6858429c78e6b740c41 upstream.

Register, shift and mask were wrong according to datasheet.

Fixes: 115510053e5e ("clk: rockchip: add clock controller for the RK3399")
Cc: stable@vger.kernel.org
Signed-off-by: Alberto Panizzo <alberto@amarulasolutions.com>
Signed-off-by: Anthony Brandon <anthony@amarulasolutions.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/rockchip/clk-rk3399.c

index 8387c7a40bda86e106ba4301c406d0a6b0a16a37..05671c03efe239042c267346cc860f6ab964c4bb 100644 (file)
@@ -629,7 +629,7 @@ static struct rockchip_clk_branch rk3399_clk_branches[] __initdata = {
        MUX(0, "clk_i2sout_src", mux_i2sch_p, CLK_SET_RATE_PARENT,
                        RK3399_CLKSEL_CON(31), 0, 2, MFLAGS),
        COMPOSITE_NODIV(SCLK_I2S_8CH_OUT, "clk_i2sout", mux_i2sout_p, CLK_SET_RATE_PARENT,
-                       RK3399_CLKSEL_CON(30), 8, 2, MFLAGS,
+                       RK3399_CLKSEL_CON(31), 2, 1, MFLAGS,
                        RK3399_CLKGATE_CON(8), 12, GFLAGS),
 
        /* uart */