From: Jianqun xu Date: Fri, 4 Dec 2015 01:06:57 +0000 (+0800) Subject: clk: rockchip: add and use clock id for mipi dsi 24M clock X-Git-Tag: firefly_0821_release~3558 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6b99a5c8c90a81f062964f4ae48d043b7a34cedc;p=firefly-linux-kernel-4.4.55.git clk: rockchip: add and use clock id for mipi dsi 24M clock Add dt-binding for mipi dsi 24M clock, and use it. Change-Id: I1f4dfac958b8b5dacfa6da02151dc3d6a2bd27a7 Signed-off-by: Jianqun xu --- diff --git a/drivers/clk/rockchip/clk-rk3368.c b/drivers/clk/rockchip/clk-rk3368.c index f8b71dc60c4e..1a6f0741c4b7 100644 --- a/drivers/clk/rockchip/clk-rk3368.c +++ b/drivers/clk/rockchip/clk-rk3368.c @@ -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 diff --git a/include/dt-bindings/clock/rk3368-cru.h b/include/dt-bindings/clock/rk3368-cru.h index fc22f02bc3c4..5816fc93032e 100644 --- a/include/dt-bindings/clock/rk3368-cru.h +++ b/include/dt-bindings/clock/rk3368-cru.h @@ -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