clk: rockchip: add and use clock id for mipi dsi 24M clock
authorJianqun xu <jay.xu@rock-chips.com>
Fri, 4 Dec 2015 01:06:57 +0000 (09:06 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Fri, 4 Dec 2015 10:23:36 +0000 (18:23 +0800)
Add dt-binding for mipi dsi 24M clock, and use it.

Change-Id: I1f4dfac958b8b5dacfa6da02151dc3d6a2bd27a7
Signed-off-by: Jianqun xu <jay.xu@rock-chips.com>
drivers/clk/rockchip/clk-rk3368.c
include/dt-bindings/clock/rk3368-cru.h

index f8b71dc60c4e3f2ef3309aca01d9e4d00ff45475..1a6f0741c4b7890676e89f168597361248135fb2 100644 (file)
@@ -497,7 +497,7 @@ static struct rockchip_clk_branch rk3368_clk_branches[] __initdata = {
        GATE(ACLK_PERI, "aclk_peri", "aclk_peri_src", CLK_IGNORE_UNUSED,
                        RK3368_CLKGATE_CON(3), 1, GFLAGS),
 
-       GATE(0, "sclk_mipidsi_24m", "xin24m", 0, RK3368_CLKGATE_CON(4), 14, GFLAGS),
+       GATE(SCLK_MIPIDSI_24M, "sclk_mipidsi_24m", "xin24m", 0, RK3368_CLKGATE_CON(4), 14, GFLAGS),
 
        /*
         * Clock-Architecture Diagram 4
index fc22f02bc3c45b51e80a83dbc75115373bcf7627..5816fc93032e48e5d0132b52d623a4538003c5e8 100644 (file)
@@ -82,6 +82,7 @@
 #define SCLK_SFC               126
 #define SCLK_MAC               127
 #define SCLK_MACREF_OUT                128
+#define SCLK_MIPIDSI_24M       129
 
 #define DCLK_VOP               190
 #define MCLK_CRYPTO            191