Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d288b16 authored by Sonny Rao's avatar Sonny Rao Committed by Heiko Stuebner
Browse files

clk: rockchip: rk3288 export i2s0_clkout for use in DT



This exposes the clock that comes out of the i2s block which generally
goes to the audio codec.

Signed-off-by: default avatarSonny Rao <sonnyrao@chromium.org>
[removed CLK_SET_RATE_PARENT from original patch]
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent a72da7c1
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -308,7 +308,7 @@ static struct rockchip_clk_branch rk3288_clk_branches[] __initdata = {
			RK3288_CLKGATE_CON(4), 2, GFLAGS),
			RK3288_CLKGATE_CON(4), 2, GFLAGS),
	MUX(0, "i2s_pre", mux_i2s_pre_p, CLK_SET_RATE_PARENT,
	MUX(0, "i2s_pre", mux_i2s_pre_p, CLK_SET_RATE_PARENT,
			RK3288_CLKSEL_CON(4), 8, 2, MFLAGS),
			RK3288_CLKSEL_CON(4), 8, 2, MFLAGS),
	COMPOSITE_NODIV(0, "i2s0_clkout", mux_i2s_clkout_p, 0,
	COMPOSITE_NODIV(SCLK_I2S0_OUT, "i2s0_clkout", mux_i2s_clkout_p, 0,
			RK3288_CLKSEL_CON(4), 12, 1, MFLAGS,
			RK3288_CLKSEL_CON(4), 12, 1, MFLAGS,
			RK3288_CLKGATE_CON(4), 0, GFLAGS),
			RK3288_CLKGATE_CON(4), 0, GFLAGS),
	GATE(SCLK_I2S0, "sclk_i2s0", "i2s_pre", CLK_SET_RATE_PARENT,
	GATE(SCLK_I2S0, "sclk_i2s0", "i2s_pre", CLK_SET_RATE_PARENT,
+1 −0
Original line number Original line Diff line number Diff line
@@ -71,6 +71,7 @@
#define SCLK_HDMI_CEC		110
#define SCLK_HDMI_CEC		110
#define SCLK_HEVC_CABAC		111
#define SCLK_HEVC_CABAC		111
#define SCLK_HEVC_CORE		112
#define SCLK_HEVC_CORE		112
#define SCLK_I2S0_OUT		113


#define DCLK_VOP0		190
#define DCLK_VOP0		190
#define DCLK_VOP1		191
#define DCLK_VOP1		191