Skip to contentSkip to conversation

correct id for clk_testout1

PATCH New Eddie Cai 1 participant 3 messages Apr 19, 2017

Subsystems (3)
lore
Share & tools
lore

Eddie Cai

author
#0 lore raw

cover correct id for clk_testout1

the id for clk_testout1 is wrong, it's time to correct it.

Eddie Cai (2):
clk: rockchip: add SCLK_TESTCLKOUT1 id
clk: rockchip: fix the incorrect id for clk_testout1

 drivers/clk/rockchip/clk-rk3399.c      | 2 +-
 include/dt-bindings/clock/rk3399-cru.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.10.2
author
#1 lore raw

PATCH 1/2 clk: rockchip: add SCLK_TESTCLKOUT1 id

we use SCLK_TESTCLKOUT1 for camera, so add this id.

---
 include/dt-bindings/clock/rk3399-cru.h | 1 +
 1 file changed, 1 insertion(+)
include/dt-bindings/clock/rk3399-cru.h +1 -0
index 220a60f..c505a98 100644
@@ -132,6 +132,7 @@
 #define SCLK_RMII_SRC			166
 #define SCLK_PCIEPHY_REF100M		167
 #define SCLK_DDRC			168
+#define SCLK_TESTCLKOUT1		169
 
 #define DCLK_VOP0			180
 #define DCLK_VOP1			181
Signature · 1 line
2.10.2
author
#2 lore raw

PATCH 2/2 clk: rockchip: fix the incorrect id for clk_testout1

In reply to Eddie Cai

the id for clk_testout1 is wrong, so correct it.

---
 drivers/clk/rockchip/clk-rk3399.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/rockchip/clk-rk3399.c +1 -1
index 73121b14..322611d 100644
@@ -1066,7 +1066,7 @@ static struct rockchip_clk_branch rk3399_clk_branches[] __initdata = {
 	/* cif_testout */
 	MUX(0, "clk_testout1_pll_src", mux_pll_src_cpll_gpll_npll_p, 0,
 			RK3399_CLKSEL_CON(38), 6, 2, MFLAGS),
-	COMPOSITE(0, "clk_testout1", mux_clk_testout1_p, 0,
+	COMPOSITE(SCLK_TESTCLKOUT1, "clk_testout1", mux_clk_testout1_p, 0,
 			RK3399_CLKSEL_CON(38), 5, 1, MFLAGS, 0, 5, DFLAGS,
 			RK3399_CLKGATE_CON(13), 14, GFLAGS),
 
Signature · 1 line
2.10.2