Skip to content

Commit ce0a9d0

Browse files
committed
Merge tag 'v5.7-rockchip-clk-fixes1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into clk-fixes
Pull one Rockchip clk fix from Heiko Stuebner: - Fix for wrongly defines rk3228 aclk_gpu* * tag 'v5.7-rockchip-clk-fixes1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip: clk: rockchip: fix incorrect configuration of rk3228 aclk_gpu* clocks
2 parents 4d3d641 + cec9d10 commit ce0a9d0

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

drivers/clk/rockchip/clk-rk3228.c

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,6 @@ PNAME(mux_i2s_out_p) = { "i2s1_pre", "xin12m" };
156156
PNAME(mux_i2s2_p) = { "i2s2_src", "i2s2_frac", "xin12m" };
157157
PNAME(mux_sclk_spdif_p) = { "sclk_spdif_src", "spdif_frac", "xin12m" };
158158

159-
PNAME(mux_aclk_gpu_pre_p) = { "cpll_gpu", "gpll_gpu", "hdmiphy_gpu", "usb480m_gpu" };
160-
161159
PNAME(mux_uart0_p) = { "uart0_src", "uart0_frac", "xin24m" };
162160
PNAME(mux_uart1_p) = { "uart1_src", "uart1_frac", "xin24m" };
163161
PNAME(mux_uart2_p) = { "uart2_src", "uart2_frac", "xin24m" };
@@ -468,16 +466,9 @@ static struct rockchip_clk_branch rk3228_clk_branches[] __initdata = {
468466
RK2928_CLKSEL_CON(24), 6, 10, DFLAGS,
469467
RK2928_CLKGATE_CON(2), 8, GFLAGS),
470468

471-
GATE(0, "cpll_gpu", "cpll", 0,
472-
RK2928_CLKGATE_CON(3), 13, GFLAGS),
473-
GATE(0, "gpll_gpu", "gpll", 0,
474-
RK2928_CLKGATE_CON(3), 13, GFLAGS),
475-
GATE(0, "hdmiphy_gpu", "hdmiphy", 0,
476-
RK2928_CLKGATE_CON(3), 13, GFLAGS),
477-
GATE(0, "usb480m_gpu", "usb480m", 0,
469+
COMPOSITE(0, "aclk_gpu_pre", mux_pll_src_4plls_p, 0,
470+
RK2928_CLKSEL_CON(34), 5, 2, MFLAGS, 0, 5, DFLAGS,
478471
RK2928_CLKGATE_CON(3), 13, GFLAGS),
479-
COMPOSITE_NOGATE(0, "aclk_gpu_pre", mux_aclk_gpu_pre_p, 0,
480-
RK2928_CLKSEL_CON(34), 5, 2, MFLAGS, 0, 5, DFLAGS),
481472

482473
COMPOSITE(SCLK_SPI0, "sclk_spi0", mux_pll_src_2plls_p, 0,
483474
RK2928_CLKSEL_CON(25), 8, 1, MFLAGS, 0, 7, DFLAGS,
@@ -582,8 +573,8 @@ static struct rockchip_clk_branch rk3228_clk_branches[] __initdata = {
582573
GATE(0, "pclk_peri_noc", "pclk_peri", CLK_IGNORE_UNUSED, RK2928_CLKGATE_CON(12), 2, GFLAGS),
583574

584575
/* PD_GPU */
585-
GATE(ACLK_GPU, "aclk_gpu", "aclk_gpu_pre", 0, RK2928_CLKGATE_CON(13), 14, GFLAGS),
586-
GATE(0, "aclk_gpu_noc", "aclk_gpu_pre", 0, RK2928_CLKGATE_CON(13), 15, GFLAGS),
576+
GATE(ACLK_GPU, "aclk_gpu", "aclk_gpu_pre", 0, RK2928_CLKGATE_CON(7), 14, GFLAGS),
577+
GATE(0, "aclk_gpu_noc", "aclk_gpu_pre", 0, RK2928_CLKGATE_CON(7), 15, GFLAGS),
587578

588579
/* PD_BUS */
589580
GATE(0, "sclk_initmem_mbist", "aclk_cpu", 0, RK2928_CLKGATE_CON(8), 1, GFLAGS),

0 commit comments

Comments
 (0)