Skip to content

Commit c181b16

Browse files
committed
Merge tag 'sunxi-clk-for-6.11' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into clk-allwinner
Pull Allwinner SoC clk driver updates from Chen-Yu Tsai: - Remove unused 'struct gates_data' from old sunxi driver library - Add missing MODULE_DESCRIPTION() macros for sunxi-ng drivers - Add GPADC clock and reset for H616 * tag 'sunxi-clk-for-6.11' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux: clk: sunxi-ng: h616: Add clock/reset for GPADC dt-bindings: clock: sun50i-h616-ccu: Add GPADC clocks clk: sunxi: Remove unused struct 'gates_data' clk: sunxi-ng: add missing MODULE_DESCRIPTION() macros
2 parents 1613e60 + 002cf0d commit c181b16

28 files changed

+32
-12
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
@@ -138,4 +138,5 @@ static struct platform_driver sun20i_d1_r_ccu_driver = {
138138
module_platform_driver(sun20i_d1_r_ccu_driver);
139139

140140
MODULE_IMPORT_NS(SUNXI_CCU);
141+
MODULE_DESCRIPTION("Support for the Allwinner D1/R528/T113 PRCM CCU");
141142
MODULE_LICENSE("GPL");

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,4 +1407,5 @@ static struct platform_driver sun20i_d1_ccu_driver = {
14071407
module_platform_driver(sun20i_d1_ccu_driver);
14081408

14091409
MODULE_IMPORT_NS(SUNXI_CCU);
1410+
MODULE_DESCRIPTION("Support for the Allwinner D1/R528/T113 CCU");
14101411
MODULE_LICENSE("GPL");

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,4 +1494,5 @@ static struct platform_driver sun4i_a10_ccu_driver = {
14941494
module_platform_driver(sun4i_a10_ccu_driver);
14951495

14961496
MODULE_IMPORT_NS(SUNXI_CCU);
1497+
MODULE_DESCRIPTION("Support for the Allwinner A10/A20 CCU");
14971498
MODULE_LICENSE("GPL");

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,4 +215,5 @@ static struct platform_driver sun50i_a100_r_ccu_driver = {
215215
module_platform_driver(sun50i_a100_r_ccu_driver);
216216

217217
MODULE_IMPORT_NS(SUNXI_CCU);
218+
MODULE_DESCRIPTION("Support for the Allwinner A100 PRCM CCU");
218219
MODULE_LICENSE("GPL");

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,4 +1277,5 @@ static struct platform_driver sun50i_a100_ccu_driver = {
12771277
module_platform_driver(sun50i_a100_ccu_driver);
12781278

12791279
MODULE_IMPORT_NS(SUNXI_CCU);
1280+
MODULE_DESCRIPTION("Support for the Allwinner A100 CCU");
12801281
MODULE_LICENSE("GPL");

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -995,4 +995,5 @@ static struct platform_driver sun50i_a64_ccu_driver = {
995995
module_platform_driver(sun50i_a64_ccu_driver);
996996

997997
MODULE_IMPORT_NS(SUNXI_CCU);
998+
MODULE_DESCRIPTION("Support for the Allwinner A64 CCU");
998999
MODULE_LICENSE("GPL");

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,4 +257,5 @@ static struct platform_driver sun50i_h6_r_ccu_driver = {
257257
module_platform_driver(sun50i_h6_r_ccu_driver);
258258

259259
MODULE_IMPORT_NS(SUNXI_CCU);
260+
MODULE_DESCRIPTION("Support for the Allwinner H6 and H616 PRCM CCU");
260261
MODULE_LICENSE("GPL");

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,4 +1287,5 @@ static struct platform_driver sun50i_h6_ccu_driver = {
12871287
module_platform_driver(sun50i_h6_ccu_driver);
12881288

12891289
MODULE_IMPORT_NS(SUNXI_CCU);
1290+
MODULE_DESCRIPTION("Support for the Allwinner H6 CCU");
12901291
MODULE_LICENSE("GPL");

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,8 @@ static SUNXI_CCU_MP_WITH_MUX_GATE(ts_clk, "ts", ts_parents, 0x9b0,
489489

490490
static SUNXI_CCU_GATE(bus_ts_clk, "bus-ts", "ahb3", 0x9bc, BIT(0), 0);
491491

492+
static SUNXI_CCU_GATE(bus_gpadc_clk, "bus-gpadc", "apb1", 0x9ec, BIT(0), 0);
493+
492494
static SUNXI_CCU_GATE(bus_ths_clk, "bus-ths", "apb1", 0x9fc, BIT(0), 0);
493495

494496
static const char * const audio_parents[] = { "pll-audio-1x", "pll-audio-2x",
@@ -807,6 +809,7 @@ static struct ccu_common *sun50i_h616_ccu_clks[] = {
807809
&bus_emac1_clk.common,
808810
&ts_clk.common,
809811
&bus_ts_clk.common,
812+
&bus_gpadc_clk.common,
810813
&bus_ths_clk.common,
811814
&spdif_clk.common,
812815
&bus_spdif_clk.common,
@@ -940,6 +943,7 @@ static struct clk_hw_onecell_data sun50i_h616_hw_clks = {
940943
[CLK_BUS_EMAC1] = &bus_emac1_clk.common.hw,
941944
[CLK_TS] = &ts_clk.common.hw,
942945
[CLK_BUS_TS] = &bus_ts_clk.common.hw,
946+
[CLK_BUS_GPADC] = &bus_gpadc_clk.common.hw,
943947
[CLK_BUS_THS] = &bus_ths_clk.common.hw,
944948
[CLK_SPDIF] = &spdif_clk.common.hw,
945949
[CLK_BUS_SPDIF] = &bus_spdif_clk.common.hw,
@@ -1021,6 +1025,7 @@ static struct ccu_reset_map sun50i_h616_ccu_resets[] = {
10211025
[RST_BUS_EMAC0] = { 0x97c, BIT(16) },
10221026
[RST_BUS_EMAC1] = { 0x97c, BIT(17) },
10231027
[RST_BUS_TS] = { 0x9bc, BIT(16) },
1028+
[RST_BUS_GPADC] = { 0x9ec, BIT(16) },
10241029
[RST_BUS_THS] = { 0x9fc, BIT(16) },
10251030
[RST_BUS_SPDIF] = { 0xa2c, BIT(16) },
10261031
[RST_BUS_DMIC] = { 0xa4c, BIT(16) },
@@ -1167,4 +1172,5 @@ static struct platform_driver sun50i_h616_ccu_driver = {
11671172
module_platform_driver(sun50i_h616_ccu_driver);
11681173

11691174
MODULE_IMPORT_NS(SUNXI_CCU);
1175+
MODULE_DESCRIPTION("Support for the Allwinner H616 CCU");
11701176
MODULE_LICENSE("GPL");

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@
5151

5252
#define CLK_BUS_DRAM 56
5353

54-
#define CLK_NUMBER (CLK_PLL_SYSTEM_32K + 1)
54+
#define CLK_NUMBER (CLK_BUS_GPADC + 1)
5555

5656
#endif /* _CCU_SUN50I_H616_H_ */

0 commit comments

Comments
 (0)