From c32d8b0ebe0b7bdb287da7e434d374d15bdaf258 Mon Sep 17 00:00:00 2001 From: Finley Xiao Date: Tue, 21 Jun 2016 18:07:39 +0800 Subject: [PATCH] clk: rockchip: add clock ids for i2s_src on RK3366 Set the newly added id for i2s_src, so that they can be called in other parts. Change-Id: Ie4ecc4d19e3ae64a07d1f2a80aa08d40f38d09ad Signed-off-by: Finley Xiao --- drivers/clk/rockchip/clk-rk3366.c | 6 +++--- include/dt-bindings/clock/rk3366-cru.h | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3366.c b/drivers/clk/rockchip/clk-rk3366.c index 1bb09e4dc543..2c44dc4312c9 100644 --- a/drivers/clk/rockchip/clk-rk3366.c +++ b/drivers/clk/rockchip/clk-rk3366.c @@ -299,7 +299,7 @@ static struct rockchip_clk_branch rk3366_clk_branches[] __initdata = { RK3368_CLKSEL_CON(12), 7, 1, MFLAGS, 0, 5, DFLAGS, RK3368_CLKGATE_CON(1), 3, GFLAGS), - COMPOSITE(0, "i2s_8ch_src", mux_pll_src_cpll_gpll_p, 0, + COMPOSITE(SCLK_I2S_8CH_SRC, "i2s_8ch_src", mux_pll_src_cpll_gpll_p, 0, RK3368_CLKSEL_CON(27), 12, 1, MFLAGS, 0, 7, DFLAGS, RK3368_CLKGATE_CON(6), 1, GFLAGS), COMPOSITE_FRACMUX(0, "i2s_8ch_frac", "i2s_8ch_src", CLK_SET_RATE_PARENT, @@ -312,7 +312,7 @@ static struct rockchip_clk_branch rk3366_clk_branches[] __initdata = { GATE(SCLK_I2S_8CH, "sclk_i2s_8ch", "i2s_8ch_pre", CLK_SET_RATE_PARENT, RK3368_CLKGATE_CON(6), 3, GFLAGS), - COMPOSITE(0, "spdif_8ch_src", mux_pll_src_cpll_gpll_p, 0, + COMPOSITE(SCLK_SPDIF_8CH_SRC, "spdif_8ch_src", mux_pll_src_cpll_gpll_p, 0, RK3368_CLKSEL_CON(31), 12, 1, MFLAGS, 0, 7, DFLAGS, RK3368_CLKGATE_CON(6), 4, GFLAGS), COMPOSITE_FRACMUX(0, "spdif_8ch_frac", "spdif_8ch_src", CLK_SET_RATE_PARENT, @@ -322,7 +322,7 @@ static struct rockchip_clk_branch rk3366_clk_branches[] __initdata = { GATE(SCLK_SPDIF_8CH, "sclk_spdif_8ch", "spdif_8ch_mux", CLK_SET_RATE_PARENT, RK3368_CLKGATE_CON(6), 6, GFLAGS), - COMPOSITE(0, "i2s_2ch_src", mux_pll_src_cpll_gpll_p, 0, + COMPOSITE(SCLK_I2S_2CH_SRC, "i2s_2ch_src", mux_pll_src_cpll_gpll_p, 0, RK3368_CLKSEL_CON(53), 12, 1, MFLAGS, 0, 7, DFLAGS, RK3368_CLKGATE_CON(5), 13, GFLAGS), COMPOSITE_FRACMUX(0, "i2s_2ch_frac", "i2s_2ch_src", CLK_SET_RATE_PARENT, diff --git a/include/dt-bindings/clock/rk3366-cru.h b/include/dt-bindings/clock/rk3366-cru.h index 9facbd51c1e3..0ae354989c50 100644 --- a/include/dt-bindings/clock/rk3366-cru.h +++ b/include/dt-bindings/clock/rk3366-cru.h @@ -96,6 +96,9 @@ #define SCLK_MPLL_SRC 130 #define SCLK_32K_INTR 131 #define SCLK_32K 132 +#define SCLK_I2S_8CH_SRC 133 +#define SCLK_I2S_2CH_SRC 134 +#define SCLK_SPDIF_8CH_SRC 135 #define DCLK_VOP_FULL 170 #define DCLK_VOP_LITE 171 -- 2.34.1