Skip to content

Commit fda77d7

Browse files
finley1226rkhuangtao
authored andcommitted
clk: rockchip: px30: Add clock id for aclk_bus_src and aclk_peri_src
Change-Id: I3467b4f799a6f5402eed3d20e4bd2c02ae30c92f Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
1 parent d9c3f98 commit fda77d7

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

drivers/clk/rockchip/clk-px30.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ static struct rockchip_clk_branch px30_clk_branches[] __initdata = {
483483
* Clock-Architecture Diagram 7
484484
*/
485485

486-
COMPOSITE_NODIV(0, "aclk_peri_src", mux_gpll_cpll_p, 0,
486+
COMPOSITE_NODIV(ACLK_PERI_SRC, "aclk_peri_src", mux_gpll_cpll_p, 0,
487487
PX30_CLKSEL_CON(14), 15, 1, MFLAGS,
488488
PX30_CLKGATE_CON(5), 7, GFLAGS),
489489
COMPOSITE_NOMUX(ACLK_PERI_PRE, "aclk_peri_pre", "aclk_peri_src", CLK_IGNORE_UNUSED,
@@ -601,7 +601,7 @@ static struct rockchip_clk_branch px30_clk_branches[] __initdata = {
601601
*/
602602

603603
/* PD_BUS */
604-
COMPOSITE_NODIV(0, "aclk_bus_src", mux_gpll_cpll_p, CLK_IGNORE_UNUSED,
604+
COMPOSITE_NODIV(ACLK_BUS_SRC, "aclk_bus_src", mux_gpll_cpll_p, CLK_IGNORE_UNUSED,
605605
PX30_CLKSEL_CON(23), 15, 1, MFLAGS,
606606
PX30_CLKGATE_CON(8), 6, GFLAGS),
607607
COMPOSITE_NOMUX(HCLK_BUS_PRE, "hclk_bus_pre", "aclk_bus_src", CLK_IGNORE_UNUSED,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@
119119
#define ACLK_GIC 184
120120
#define ACLK_DCF 186
121121
#define ACLK_DMAC 187
122+
#define ACLK_BUS_SRC 188
123+
#define ACLK_PERI_SRC 189
122124

123125
/* hclk gates */
124126
#define HCLK_BUS_PRE 240

0 commit comments

Comments
 (0)