Skip to content

Commit 19149b3

Browse files
committed
Merge tag 'sunxi-clk-for-6.10-1' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into clk-allwinner
Pull Allwinner clk driver updates from Jernej Skrabec: - Add additional constraints to A64 PLL MIPI clock - Fix autoloading sunxi-ng clocks when build as a module * tag 'sunxi-clk-for-6.10-1' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux: clk: sunxi-ng: fix module autoloading clk: sunxi-ng: a64: Add constraints on PLL-MIPI's n/m ratio and parent rate clk: sunxi-ng: nkm: Support constraints on m/n ratio and parent rate
2 parents 4cece76 + c60f680 commit 19149b3

25 files changed

+53
-5
lines changed

drivers/clk/sunxi-ng/ccu-sun20i-d1-r.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ static const struct of_device_id sun20i_d1_r_ccu_ids[] = {
125125
{ .compatible = "allwinner,sun20i-d1-r-ccu" },
126126
{ }
127127
};
128+
MODULE_DEVICE_TABLE(of, sun20i_d1_r_ccu_ids);
128129

129130
static struct platform_driver sun20i_d1_r_ccu_driver = {
130131
.probe = sun20i_d1_r_ccu_probe,

drivers/clk/sunxi-ng/ccu-sun20i-d1.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,6 +1394,7 @@ static const struct of_device_id sun20i_d1_ccu_ids[] = {
13941394
{ .compatible = "allwinner,sun20i-d1-ccu" },
13951395
{ }
13961396
};
1397+
MODULE_DEVICE_TABLE(of, sun20i_d1_ccu_ids);
13971398

13981399
static struct platform_driver sun20i_d1_ccu_driver = {
13991400
.probe = sun20i_d1_ccu_probe,

drivers/clk/sunxi-ng/ccu-sun4i-a10.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,6 +1481,7 @@ static const struct of_device_id sun4i_a10_ccu_ids[] = {
14811481
},
14821482
{ }
14831483
};
1484+
MODULE_DEVICE_TABLE(of, sun4i_a10_ccu_ids);
14841485

14851486
static struct platform_driver sun4i_a10_ccu_driver = {
14861487
.probe = sun4i_a10_ccu_probe,

drivers/clk/sunxi-ng/ccu-sun50i-a100-r.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ static const struct of_device_id sun50i_a100_r_ccu_ids[] = {
202202
{ .compatible = "allwinner,sun50i-a100-r-ccu" },
203203
{ }
204204
};
205+
MODULE_DEVICE_TABLE(of, sun50i_a100_r_ccu_ids);
205206

206207
static struct platform_driver sun50i_a100_r_ccu_driver = {
207208
.probe = sun50i_a100_r_ccu_probe,

drivers/clk/sunxi-ng/ccu-sun50i-a100.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,6 +1264,7 @@ static const struct of_device_id sun50i_a100_ccu_ids[] = {
12641264
{ .compatible = "allwinner,sun50i-a100-ccu" },
12651265
{ }
12661266
};
1267+
MODULE_DEVICE_TABLE(of, sun50i_a100_ccu_ids);
12671268

12681269
static struct platform_driver sun50i_a100_ccu_driver = {
12691270
.probe = sun50i_a100_ccu_probe,

drivers/clk/sunxi-ng/ccu-sun50i-a64.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,13 @@ static struct ccu_nkm pll_mipi_clk = {
171171
* user manual, and by experiments the PLL doesn't work without
172172
* these bits toggled.
173173
*/
174-
.enable = BIT(31) | BIT(23) | BIT(22),
175-
.lock = BIT(28),
176-
.n = _SUNXI_CCU_MULT(8, 4),
177-
.k = _SUNXI_CCU_MULT_MIN(4, 2, 2),
178-
.m = _SUNXI_CCU_DIV(0, 4),
174+
.enable = BIT(31) | BIT(23) | BIT(22),
175+
.lock = BIT(28),
176+
.n = _SUNXI_CCU_MULT(8, 4),
177+
.k = _SUNXI_CCU_MULT_MIN(4, 2, 2),
178+
.m = _SUNXI_CCU_DIV(0, 4),
179+
.max_m_n_ratio = 3,
180+
.min_parent_m_ratio = 24000000,
179181
.common = {
180182
.reg = 0x040,
181183
.hw.init = CLK_HW_INIT("pll-mipi", "pll-video0",
@@ -978,6 +980,7 @@ static const struct of_device_id sun50i_a64_ccu_ids[] = {
978980
{ .compatible = "allwinner,sun50i-a64-ccu" },
979981
{ }
980982
};
983+
MODULE_DEVICE_TABLE(of, sun50i_a64_ccu_ids);
981984

982985
static struct platform_driver sun50i_a64_ccu_driver = {
983986
.probe = sun50i_a64_ccu_probe,

drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ static const struct of_device_id sun50i_h6_r_ccu_ids[] = {
244244
},
245245
{ }
246246
};
247+
MODULE_DEVICE_TABLE(of, sun50i_h6_r_ccu_ids);
247248

248249
static struct platform_driver sun50i_h6_r_ccu_driver = {
249250
.probe = sun50i_h6_r_ccu_probe,

drivers/clk/sunxi-ng/ccu-sun50i-h6.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,7 @@ static const struct of_device_id sun50i_h6_ccu_ids[] = {
12591259
{ .compatible = "allwinner,sun50i-h6-ccu" },
12601260
{ }
12611261
};
1262+
MODULE_DEVICE_TABLE(of, sun50i_h6_ccu_ids);
12621263

12631264
static struct platform_driver sun50i_h6_ccu_driver = {
12641265
.probe = sun50i_h6_ccu_probe,

drivers/clk/sunxi-ng/ccu-sun50i-h616.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,7 @@ static const struct of_device_id sun50i_h616_ccu_ids[] = {
11541154
{ .compatible = "allwinner,sun50i-h616-ccu" },
11551155
{ }
11561156
};
1157+
MODULE_DEVICE_TABLE(of, sun50i_h616_ccu_ids);
11571158

11581159
static struct platform_driver sun50i_h616_ccu_driver = {
11591160
.probe = sun50i_h616_ccu_probe,

drivers/clk/sunxi-ng/ccu-sun6i-a31.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,6 +1271,7 @@ static const struct of_device_id sun6i_a31_ccu_ids[] = {
12711271
{ .compatible = "allwinner,sun6i-a31-ccu" },
12721272
{ }
12731273
};
1274+
MODULE_DEVICE_TABLE(of, sun6i_a31_ccu_ids);
12741275

12751276
static struct platform_driver sun6i_a31_ccu_driver = {
12761277
.probe = sun6i_a31_ccu_probe,

0 commit comments

Comments
 (0)