Some minor cleanup in the Rockchip clock driver
Subsystems (2)
Heiko Stuebner
maintainercover Some minor cleanup in the Rockchip clock driver
One fixup for the new grf-gate and bringing the grf-mux branch naming in line with the oher newly added grf clock-types.
Heiko Stuebner (2):
clk: rockchip: rename branch_muxgrf to branch_grf_mux
clk: rockchip: rename gate-grf clk file
drivers/clk/rockchip/Makefile | 2 +-
drivers/clk/rockchip/{gate-grf.c => clk-gate-grf.c} | 0
drivers/clk/rockchip/clk.c | 4 ++--
drivers/clk/rockchip/clk.h | 4 ++--
4 files changed, 5 insertions(+), 5 deletions(-)
rename drivers/clk/rockchip/{gate-grf.c => clk-gate-grf.c} (100%)Signature · 1 line
2.47.2
Heiko Stuebner
maintainerPATCH 1/2 clk: rockchip: rename branch_muxgrf to branch_grf_mux
We now have a number of new branch-types coming from the "General Register Files" (gates and mmc phase clocks). Their naming as branch_grf_foo is way nicer, so rename the old branch_muxgrf to a similar scheme.
--- drivers/clk/rockchip/clk.c | 4 ++-- drivers/clk/rockchip/clk.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/clk/rockchip/clk.c +2 -2
@@ -509,7 +509,7 @@ void rockchip_clk_register_branches(struct rockchip_clk_provider *ctx, clk =NULL ;/* for GRF-dependent branches, choose the right grf first */ -if ((list->branch_type == branch_muxgrf || +if ((list->branch_type == branch_grf_mux || list->branch_type == branch_grf_gate || list->branch_type == branch_grf_mmc) && list->grf_type != grf_type_sys) {
@@ -540,7 +540,7 @@ void rockchip_clk_register_branches(struct rockchip_clk_provider *ctx, list->mux_shift, list->mux_width, list->mux_flags, &ctx->lock);break ; -case branch_muxgrf: +case branch_grf_mux: clk = rockchip_clk_register_muxgrf(list->name, list->parent_names, list->num_parents, flags, grf, list->muxdiv_offset,
drivers/clk/rockchip/clk.h +2 -2
@@ -664,7 +664,7 @@ struct clk *rockchip_clk_register_gate_grf(const char *name,enum rockchip_clk_branch_type { branch_composite, branch_mux, - branch_muxgrf, + branch_grf_mux, branch_divider, branch_fraction_divider, branch_gate,
@@ -943,7 +943,7 @@ struct rockchip_clk_branch {#define MUXGRF (_id, cname, pnames, f, o, s, w, mf, gt) \ { \ .id = _id, \ - .branch_type = branch_muxgrf, \ + .branch_type = branch_grf_mux, \ .name = cname, \ .parent_names = pnames, \ .num_parents = ARRAY_SIZE(pnames), \
Signature · 1 line
2.47.2
Heiko Stuebner
maintainerPATCH 2/2 clk: rockchip: rename gate-grf clk file
In reply to Heiko StuebnerAll Rockchip clock types live in files starting with clk-foo, so rename the newly added gate-grf-clock to follow that scheme.
---
drivers/clk/rockchip/Makefile | 2 +-
drivers/clk/rockchip/{gate-grf.c => clk-gate-grf.c} | 0
2 files changed, 1 insertion(+), 1 deletion(-)
rename drivers/clk/rockchip/{gate-grf.c => clk-gate-grf.c} (100%)drivers/clk/rockchip/Makefile +1 -1
@@ -8,13 +8,13 @@ obj-$(CONFIG_COMMON_CLK_ROCKCHIP) += clk-rockchip.o clk-rockchip-y += clk.o clk-rockchip-y += clk-pll.o clk-rockchip-y += clk-cpu.o +clk-rockchip-y += clk-gate-grf.o clk-rockchip-y += clk-half-divider.o clk-rockchip-y += clk-inverter.o clk-rockchip-y += clk-mmc-phase.o clk-rockchip-y += clk-muxgrf.o clk-rockchip-y += clk-ddr.o clk-rockchip-y += gate-link.o -clk-rockchip-y += gate-grf.o clk-rockchip-$(CONFIG_RESET_CONTROLLER) += softrst.o obj-$(CONFIG_CLK_PX30) += clk-px30.o
drivers/clk/rockchip/clk-gate-grf.c renamed from drivers/clk/rockchip/gate-grf.c +0 -0
Signature · 1 line
2.47.2
Quoted 8 lines · Heiko Stuebner
One fixup for the new grf-gate and bringing the grf-mux branch naming in line with the oher newly added grf clock-types.
Heiko Stuebner (2):
clk: rockchip: renamebranch_muxgrftobranch_grf_mux
clk: rockchip: rename gate-grf clk file[...]
Applied, thanks!
[1/2] clk: rockchip: rename branch_muxgrf to branch_grf_mux
commit: e37fe0b9bf762dca9f16e0461d14038ec3898f8d
[2/2] clk: rockchip: rename gate-grf clk file
commit: 553f648dbd9472ea55a6835446fe57f48491b355Best regards,
Signature · 1 line
Heiko Stuebner <[email protected]>