Skip to content

Commit ff52407

Browse files
committed
clk: sophgo: Add PLL clock controller support for SG2044 SoC
Add PLL clock driver and clock definition for SG2044 SoC. Link: https://lore.kernel.org/r/20250418020325.421257-5-inochiama@gmail.com Signed-off-by: Inochi Amaoto <inochiama@gmail.com> Signed-off-by: Chen Wang <unicorn_wang@outlook.com> Signed-off-by: Chen Wang <wangchen20@iscas.ac.cn>
1 parent 1a21590 commit ff52407

File tree

3 files changed

+639
-0
lines changed

3 files changed

+639
-0
lines changed

drivers/clk/sophgo/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,13 @@ config CLK_SOPHGO_SG2042_RPGATE
3737
This clock IP depends on SG2042 Clock Generator because it uses
3838
clock from Clock Generator IP as input.
3939
This driver provides Gate function for RP.
40+
41+
config CLK_SOPHGO_SG2044_PLL
42+
tristate "Sophgo SG2044 PLL clock controller support"
43+
depends on ARCH_SOPHGO || COMPILE_TEST
44+
select MFD_SYSCON
45+
select REGMAP_MMIO
46+
help
47+
This driver supports the PLL clock controller on the Sophgo
48+
SG2044 SoC. This controller requires 25M oscillator as input.
49+
This clock control provides PLL clocks on the SoC.

drivers/clk/sophgo/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ clk-sophgo-cv1800-y += clk-cv18xx-pll.o
99
obj-$(CONFIG_CLK_SOPHGO_SG2042_CLKGEN) += clk-sg2042-clkgen.o
1010
obj-$(CONFIG_CLK_SOPHGO_SG2042_PLL) += clk-sg2042-pll.o
1111
obj-$(CONFIG_CLK_SOPHGO_SG2042_RPGATE) += clk-sg2042-rpgate.o
12+
obj-$(CONFIG_CLK_SOPHGO_SG2044_PLL) += clk-sg2044-pll.o

0 commit comments

Comments
 (0)