Skip to content

Commit 9d32616

Browse files
committed
Merge branches 'clk-renesas', 'clk-amlogic', 'clk-allwinner', 'clk-samsung', 'clk-doc' and 'clk-unused' into clk-next
- Remove various unused variables in clk drivers * clk-renesas: clk: renesas: rcar-gen3: Update description for RZ/G2 clk: renesas: cpg-mssr: Add support for R-Car V3U clk: renesas: cpg-mssr: Add register pointers into struct cpg_mssr_priv clk: renesas: cpg-mssr: Use enum clk_reg_layout instead of a boolean flag dt-bindings: clock: renesas,cpg-mssr: Document r8a779a0 dt-bindings: clock: Add r8a779a0 CPG Core Clock Definitions dt-bindings: power: Add r8a779a0 SYSC power domain definitions clk: renesas: rcar-gen2: Rename vsp1-(sy|rt) clocks to vsp(s|r) clk: renesas: r8a7742: Add clk entry for VSPR * clk-amlogic: clk: meson: make shipped controller configurable clk: meson: g12a: mark fclk_div2 as critical clk: meson: axg-audio: fix g12a tdmout sclk inverter clk: meson: axg-audio: separate axg and g12a regmap tables clk: meson: add sclk-ws driver * clk-allwinner: clk: sunxi-ng: sun8i: r40: Use sigma delta modulation for audio PLL clk: sunxi-ng: add support for the Allwinner A100 CCU dt-bindings: clk: sunxi-ccu: add compatible string for A100 CCU and R-CCU * clk-samsung: clk: s2mps11: initialize driver via module_platform_driver clk: samsung: Use cached clk_hws instead of __clk_lookup() calls clk: samsung: exynos5420/5250: Add IDs to the CPU parent clk definitions clk: samsung: Add clk ID definitions for the CPU parent clocks clk: samsung: exynos5420: Avoid __clk_lookup() calls when enabling clocks clk: samsung: exynos5420: Add definition of clock ID for mout_sw_aclk_g3d clk: samsung: Keep top BPLL mux on Exynos542x enabled * clk-doc: clk: davinci: add missing kerneldoc clk: fixed: add missing kerneldoc * clk-unused: clk: socfpga: agilex: Remove unused variable 'cntr_mux' clk: si5341: drop unused 'err' variable clk: mmp: pxa1928: drop unused 'clk' variable clk: at91: drop unused at91sam9g45_pcr_layout
6 parents 7aa908b + 871ca96 + 5eefe5e + 533852d + faeda01 + b10f224 commit 9d32616

34 files changed

Lines changed: 2182 additions & 136 deletions

‎Documentation/devicetree/bindings/clock/allwinner,sun4i-a10-ccu.yaml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ properties:
3636
- allwinner,sun9i-a80-ccu
3737
- allwinner,sun50i-a64-ccu
3838
- allwinner,sun50i-a64-r-ccu
39+
- allwinner,sun50i-a100-ccu
40+
- allwinner,sun50i-a100-r-ccu
3941
- allwinner,sun50i-h5-ccu
4042
- allwinner,sun50i-h6-ccu
4143
- allwinner,sun50i-h6-r-ccu
@@ -78,6 +80,7 @@ if:
7880
- allwinner,sun8i-a83t-r-ccu
7981
- allwinner,sun8i-h3-r-ccu
8082
- allwinner,sun50i-a64-r-ccu
83+
- allwinner,sun50i-a100-r-ccu
8184
- allwinner,sun50i-h6-r-ccu
8285

8386
then:
@@ -94,7 +97,9 @@ else:
9497
if:
9598
properties:
9699
compatible:
97-
const: allwinner,sun50i-h6-ccu
100+
enum:
101+
- allwinner,sun50i-a100-ccu
102+
- allwinner,sun50i-h6-ccu
98103

99104
then:
100105
properties:

‎drivers/clk/at91/at91sam9g45.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@ static const struct {
4646
{ .n = "pck1", .p = "prog1", .id = 9 },
4747
};
4848

49-
static const struct clk_pcr_layout at91sam9g45_pcr_layout = {
50-
.offset = 0x10c,
51-
.cmd = BIT(12),
52-
.pid_mask = GENMASK(5, 0),
53-
.div_mask = GENMASK(17, 16),
54-
};
55-
5649
struct pck {
5750
char *n;
5851
u8 id;

‎drivers/clk/clk-fixed-factor.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ static struct clk_hw *_of_fixed_factor_clk_setup(struct device_node *node)
206206

207207
/**
208208
* of_fixed_factor_clk_setup() - Setup function for simple fixed factor clock
209+
* @node: device node for the clock
209210
*/
210211
void __init of_fixed_factor_clk_setup(struct device_node *node)
211212
{

‎drivers/clk/clk-fixed-rate.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ static struct clk_hw *_of_fixed_clk_setup(struct device_node *node)
168168

169169
/**
170170
* of_fixed_clk_setup() - Setup function for simple fixed rate clock
171+
* @node: device node for the clock
171172
*/
172173
void __init of_fixed_clk_setup(struct device_node *node)
173174
{

‎drivers/clk/clk-s2mps11.c‎

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -267,18 +267,7 @@ static struct platform_driver s2mps11_clk_driver = {
267267
.remove = s2mps11_clk_remove,
268268
.id_table = s2mps11_clk_id,
269269
};
270-
271-
static int __init s2mps11_clk_init(void)
272-
{
273-
return platform_driver_register(&s2mps11_clk_driver);
274-
}
275-
subsys_initcall(s2mps11_clk_init);
276-
277-
static void __exit s2mps11_clk_cleanup(void)
278-
{
279-
platform_driver_unregister(&s2mps11_clk_driver);
280-
}
281-
module_exit(s2mps11_clk_cleanup);
270+
module_platform_driver(s2mps11_clk_driver);
282271

283272
MODULE_DESCRIPTION("S2MPS11 Clock Driver");
284273
MODULE_AUTHOR("Yadwinder Singh Brar <yadi.brar@samsung.com>");

‎drivers/clk/clk-si5341.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -883,11 +883,9 @@ static int si5341_output_set_parent(struct clk_hw *hw, u8 index)
883883
static u8 si5341_output_get_parent(struct clk_hw *hw)
884884
{
885885
struct clk_si5341_output *output = to_clk_si5341_output(hw);
886-
int err;
887886
u32 val;
888887

889-
err = regmap_read(output->data->regmap,
890-
SI5341_OUT_MUX_SEL(output), &val);
888+
regmap_read(output->data->regmap, SI5341_OUT_MUX_SEL(output), &val);
891889

892890
return val & 0x7;
893891
}

‎drivers/clk/davinci/da8xx-cfgchip.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ static const struct clk_ops da8xx_usb1_clk48_ops = {
571571

572572
/**
573573
* da8xx_cfgchip_register_usb1_clk48 - Register a new USB 1.1 PHY clock
574+
* @dev: The device
574575
* @regmap: The CFGCHIP regmap
575576
*/
576577
static struct da8xx_usb1_clk48 *

‎drivers/clk/meson/Kconfig‎

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2+
menu "Clock support for Amlogic platforms"
3+
depends on ARCH_MESON || COMPILE_TEST
4+
25
config COMMON_CLK_MESON_REGMAP
36
tristate
47
select REGMAP
@@ -41,8 +44,9 @@ config COMMON_CLK_MESON_CPU_DYNDIV
4144
select COMMON_CLK_MESON_REGMAP
4245

4346
config COMMON_CLK_MESON8B
44-
bool
45-
depends on ARCH_MESON
47+
bool "Meson8 SoC Clock controller support"
48+
depends on ARM
49+
default y
4650
select COMMON_CLK_MESON_REGMAP
4751
select COMMON_CLK_MESON_MPLL
4852
select COMMON_CLK_MESON_PLL
@@ -54,8 +58,9 @@ config COMMON_CLK_MESON8B
5458
want peripherals and CPU frequency scaling to work.
5559

5660
config COMMON_CLK_GXBB
57-
bool
58-
depends on ARCH_MESON
61+
bool "GXBB and GXL SoC clock controllers support"
62+
depends on ARM64
63+
default y
5964
select COMMON_CLK_MESON_REGMAP
6065
select COMMON_CLK_MESON_DUALDIV
6166
select COMMON_CLK_MESON_VID_PLL_DIV
@@ -69,8 +74,9 @@ config COMMON_CLK_GXBB
6974
Say Y if you want peripherals and CPU frequency scaling to work.
7075

7176
config COMMON_CLK_AXG
72-
bool
73-
depends on ARCH_MESON
77+
bool "AXG SoC clock controllers support"
78+
depends on ARM64
79+
default y
7480
select COMMON_CLK_MESON_REGMAP
7581
select COMMON_CLK_MESON_DUALDIV
7682
select COMMON_CLK_MESON_MPLL
@@ -84,7 +90,7 @@ config COMMON_CLK_AXG
8490

8591
config COMMON_CLK_AXG_AUDIO
8692
tristate "Meson AXG Audio Clock Controller Driver"
87-
depends on ARCH_MESON
93+
depends on ARM64
8894
select COMMON_CLK_MESON_REGMAP
8995
select COMMON_CLK_MESON_PHASE
9096
select COMMON_CLK_MESON_SCLK_DIV
@@ -94,8 +100,9 @@ config COMMON_CLK_AXG_AUDIO
94100
aka axg, Say Y if you want audio subsystem to work.
95101

96102
config COMMON_CLK_G12A
97-
bool
98-
depends on ARCH_MESON
103+
bool "G12 and SM1 SoC clock controllers support"
104+
depends on ARM64
105+
default y
99106
select COMMON_CLK_MESON_REGMAP
100107
select COMMON_CLK_MESON_DUALDIV
101108
select COMMON_CLK_MESON_MPLL
@@ -107,3 +114,4 @@ config COMMON_CLK_G12A
107114
help
108115
Support for the clock controller on Amlogic S905D2, S905X2 and S905Y2
109116
devices, aka g12a. Say Y if you want peripherals to work.
117+
endmenu

0 commit comments

Comments
 (0)