Skip to content

Commit 62670d0

Browse files
bivvyrkhuangtao
authored andcommitted
clk/rockchip: rk3288: Add support for sclk_testout
Change-Id: Ibd521712a6517300984db4199ac0164a499dc0f7 Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
1 parent b3f4ff4 commit 62670d0

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

drivers/clk/rockchip/clk-rk3288.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,12 @@ PNAME(mux_hsadcout_p) = { "hsadc_src", "ext_hsadc" };
204204
PNAME(mux_edp_24m_p) = { "ext_edp_24m", "xin24m" };
205205
PNAME(mux_tspout_p) = { "cpll", "gpll", "npll", "xin27m" };
206206

207+
PNAME(mux_testout_src_p) = { "aclk_peri", "armclk", "aclk_vio0", "ddrphy",
208+
"aclk_vcodec", "aclk_gpu", "sclk_rga", "aclk_cpu",
209+
"xin24m", "xin27m", "xin32k", "clk_wifi",
210+
"dclk_vop0", "dclk_vop1", "sclk_isp_jpe",
211+
"sclk_isp" };
212+
207213
PNAME(mux_usbphy480m_p) = { "sclk_otgphy1_480m", "sclk_otgphy2_480m",
208214
"sclk_otgphy0_480m" };
209215
PNAME(mux_hsicphy480m_p) = { "cpll", "gpll", "usbphy480m_src" };
@@ -560,6 +566,12 @@ static struct rockchip_clk_branch rk3288_clk_branches[] __initdata = {
560566
RK3288_CLKSEL_CON(2), 0, 6, DFLAGS,
561567
RK3288_CLKGATE_CON(2), 7, GFLAGS),
562568

569+
MUX(SCLK_TESTOUT_SRC, "sclk_testout_src", mux_testout_src_p, 0,
570+
RK3288_MISC_CON, 8, 4, MFLAGS),
571+
COMPOSITE_NOMUX(SCLK_TESTOUT, "sclk_testout", "sclk_testout_src", 0,
572+
RK3288_CLKSEL_CON(2), 8, 5, DFLAGS,
573+
RK3288_CLKGATE_CON(4), 15, GFLAGS),
574+
563575
COMPOSITE_NOMUX(SCLK_SARADC, "sclk_saradc", "xin24m", 0,
564576
RK3288_CLKSEL_CON(24), 8, 8, DFLAGS,
565577
RK3288_CLKGATE_CON(2), 8, GFLAGS),

include/dt-bindings/clock/rk3288-cru.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@
100100
#define SCLK_MAC_PLL 150
101101
#define SCLK_MAC 151
102102
#define SCLK_MACREF_OUT 152
103+
#define SCLK_TESTOUT_SRC 153
104+
#define SCLK_TESTOUT 154
103105

104106
#define DCLK_VOP0 190
105107
#define DCLK_VOP1 191

0 commit comments

Comments
 (0)