Skip to content

Commit d54c1fd

Browse files
QinJianCQbebarino
authored andcommitted
clk: Add Sunplus SP7021 clock driver
Add clock driver for Sunplus SP7021 SoC. Signed-off-by: Qin Jian <qinjian@cqplus1.com> Link: https://lore.kernel.org/r/20221219015130.42621-1-qinjian@cqplus1.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent fe15c26 commit d54c1fd

File tree

5 files changed

+744
-0
lines changed

5 files changed

+744
-0
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2849,6 +2849,7 @@ F: Documentation/devicetree/bindings/reset/sunplus,reset.yaml
28492849
F: arch/arm/boot/dts/sunplus-sp7021*.dts*
28502850
F: arch/arm/configs/sp7021_*defconfig
28512851
F: arch/arm/mach-sunplus/
2852+
F: drivers/clk/clk-sp7021.c
28522853
F: drivers/irqchip/irq-sp7021-intc.c
28532854
F: drivers/reset/reset-sunplus.c
28542855
F: include/dt-bindings/clock/sunplus,sp7021-clkc.h

drivers/clk/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,16 @@ config COMMON_CLK_K210
436436
help
437437
Support for the Canaan Kendryte K210 RISC-V SoC clocks.
438438

439+
config COMMON_CLK_SP7021
440+
tristate "Clock driver for Sunplus SP7021 SoC"
441+
depends on SOC_SP7021 || COMPILE_TEST
442+
default SOC_SP7021
443+
help
444+
This driver supports the Sunplus SP7021 SoC clocks.
445+
It implements SP7021 PLLs/gate.
446+
Not all features of the PLL are currently supported
447+
by the driver.
448+
439449
source "drivers/clk/actions/Kconfig"
440450
source "drivers/clk/analogbits/Kconfig"
441451
source "drivers/clk/baikal-t1/Kconfig"

drivers/clk/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ obj-$(CONFIG_COMMON_CLK_SI5351) += clk-si5351.o
6565
obj-$(CONFIG_COMMON_CLK_SI514) += clk-si514.o
6666
obj-$(CONFIG_COMMON_CLK_SI544) += clk-si544.o
6767
obj-$(CONFIG_COMMON_CLK_SI570) += clk-si570.o
68+
obj-$(CONFIG_COMMON_CLK_SP7021) += clk-sp7021.o
6869
obj-$(CONFIG_COMMON_CLK_STM32F) += clk-stm32f4.o
6970
obj-$(CONFIG_COMMON_CLK_STM32H7) += clk-stm32h7.o
7071
obj-$(CONFIG_COMMON_CLK_STM32MP157) += clk-stm32mp1.o

0 commit comments

Comments
 (0)