Skip to content

Commit b56e1cc

Browse files
committed
Merge tag 'v5.12-rockchip-clk1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into clk-rockchip
Pull Rockchip clk driver updates from Heiko Stuebner: - Kerneldoc fixes - some new rk3368 clock ids related to camera input * tag 'v5.12-rockchip-clk1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip: clk: rockchip: fix DPHY gate locations on rk3368 clk: rockchip: use clock id for SCLK_VIP_OUT on rk3368 clk: rockchip: add clock id for SCLK_VIP_OUT on rk3368 clk: rockchip: use clock ids for PCLK_DPHYRX and PCLK_DPHYTX0 on rk3368 clk: rockchip: add clock ids for PCLK_DPHYRX and PCLK_DPHYTX0 on rk3368 clk: rockchip: Demote non-conformant kernel-doc header in half-divider clk: rockchip: Demote kernel-doc abuses to standard comment blocks in plls clk: rockchip: Remove unused/undocumented struct members from clk-cpu clk: rockchip: Demote non-conformant kernel-doc headers in main clock code
2 parents 5c8fe58 + 4bc23b3 commit b56e1cc

File tree

6 files changed

+12
-13
lines changed

6 files changed

+12
-13
lines changed

drivers/clk/rockchip/clk-cpu.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@
5151
*/
5252
struct rockchip_cpuclk {
5353
struct clk_hw hw;
54-
55-
struct clk_mux cpu_mux;
56-
const struct clk_ops *cpu_mux_ops;
57-
5854
struct clk *alt_parent;
5955
void __iomem *reg_base;
6056
struct notifier_block clk_nb;

drivers/clk/rockchip/clk-half-divider.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static const struct clk_ops clk_half_divider_ops = {
145145
.set_rate = clk_half_divider_set_rate,
146146
};
147147

148-
/**
148+
/*
149149
* Register a clock branch.
150150
* Most clock branches have a form like
151151
*

drivers/clk/rockchip/clk-pll.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static int rockchip_pll_wait_lock(struct rockchip_clk_pll *pll)
9797
return ret;
9898
}
9999

100-
/**
100+
/*
101101
* PLL used in RK3036
102102
*/
103103

@@ -358,7 +358,7 @@ static const struct clk_ops rockchip_rk3036_pll_clk_ops = {
358358
.init = rockchip_rk3036_pll_init,
359359
};
360360

361-
/**
361+
/*
362362
* PLL used in RK3066, RK3188 and RK3288
363363
*/
364364

@@ -577,7 +577,7 @@ static const struct clk_ops rockchip_rk3066_pll_clk_ops = {
577577
.init = rockchip_rk3066_pll_init,
578578
};
579579

580-
/**
580+
/*
581581
* PLL used in RK3399
582582
*/
583583

drivers/clk/rockchip/clk-rk3368.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ static struct rockchip_clk_branch rk3368_clk_branches[] __initdata = {
474474
COMPOSITE_NODIV(0, "vip_src", mux_pll_src_cpll_gpll_p, 0,
475475
RK3368_CLKSEL_CON(21), 15, 1, MFLAGS,
476476
RK3368_CLKGATE_CON(4), 5, GFLAGS),
477-
COMPOSITE_NOGATE(0, "sclk_vip_out", mux_vip_out_p, 0,
477+
COMPOSITE_NOGATE(SCLK_VIP_OUT, "sclk_vip_out", mux_vip_out_p, 0,
478478
RK3368_CLKSEL_CON(21), 14, 1, MFLAGS, 8, 5, DFLAGS),
479479

480480
COMPOSITE_NODIV(SCLK_EDP_24M, "sclk_edp_24m", mux_edp_24m_p, 0,
@@ -818,8 +818,8 @@ static struct rockchip_clk_branch rk3368_clk_branches[] __initdata = {
818818
* pclk_vio gates
819819
* pclk_vio comes from the exactly same source as hclk_vio
820820
*/
821-
GATE(0, "pclk_dphyrx", "hclk_vio", CLK_IGNORE_UNUSED, RK3368_CLKGATE_CON(14), 8, GFLAGS),
822-
GATE(0, "pclk_dphytx", "hclk_vio", CLK_IGNORE_UNUSED, RK3368_CLKGATE_CON(14), 8, GFLAGS),
821+
GATE(PCLK_DPHYRX, "pclk_dphyrx", "hclk_vio", CLK_IGNORE_UNUSED, RK3368_CLKGATE_CON(22), 11, GFLAGS),
822+
GATE(PCLK_DPHYTX0, "pclk_dphytx0", "hclk_vio", CLK_IGNORE_UNUSED, RK3368_CLKGATE_CON(22), 10, GFLAGS),
823823

824824
/* pclk_pd_pmu gates */
825825
GATE(PCLK_PMUGRF, "pclk_pmugrf", "pclk_pd_pmu", CLK_IGNORE_UNUSED, RK3368_CLKGATE_CON(23), 5, GFLAGS),

drivers/clk/rockchip/clk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <linux/rational.h>
2525
#include "clk.h"
2626

27-
/**
27+
/*
2828
* Register a clock branch.
2929
* Most clock branches have a form like
3030
*
@@ -170,7 +170,7 @@ static int rockchip_clk_frac_notifier_cb(struct notifier_block *nb,
170170
return notifier_from_errno(ret);
171171
}
172172

173-
/**
173+
/*
174174
* fractional divider must set that denominator is 20 times larger than
175175
* numerator to generate precise clock frequency.
176176
*/

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
#define SCLK_TIMER13 136
7979
#define SCLK_TIMER14 137
8080
#define SCLK_TIMER15 138
81+
#define SCLK_VIP_OUT 139
8182

8283
#define DCLK_VOP 190
8384
#define MCLK_CRYPTO 191
@@ -148,6 +149,8 @@
148149
#define PCLK_VIP 367
149150
#define PCLK_WDT 368
150151
#define PCLK_EFUSE256 369
152+
#define PCLK_DPHYRX 370
153+
#define PCLK_DPHYTX0 371
151154

152155
/* hclk gates */
153156
#define HCLK_SFC 448

0 commit comments

Comments
 (0)