Skip to content

Commit 1ab4601

Browse files
Mani-Sadhasivambebarino
authored andcommitted
clk: Add common clock driver for BM1880 SoC
Add common clock driver for Bitmain BM1880 SoC. The clock controller on BM1880 has supplies clocks to all peripherals in the form of gate clocks and composite clocks (fixed factor + gate). Signed-off-by: Manivannan Sadhasivam <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 7046c6b commit 1ab4601

File tree

3 files changed

+977
-0
lines changed

3 files changed

+977
-0
lines changed

drivers/clk/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ config COMMON_CLK_SI570
136136
This driver supports Silicon Labs 570/571/598/599 programmable
137137
clock generators.
138138

139+
config COMMON_CLK_BM1880
140+
bool "Clock driver for Bitmain BM1880 SoC"
141+
depends on ARCH_BITMAIN || COMPILE_TEST
142+
default ARCH_BITMAIN
143+
help
144+
This driver supports the clocks on Bitmain BM1880 SoC.
145+
139146
config COMMON_CLK_CDCE706
140147
tristate "Clock driver for TI CDCE706 clock synthesizer"
141148
depends on I2C

drivers/clk/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ obj-$(CONFIG_MACH_ASM9260) += clk-asm9260.o
2222
obj-$(CONFIG_COMMON_CLK_AXI_CLKGEN) += clk-axi-clkgen.o
2323
obj-$(CONFIG_ARCH_AXXIA) += clk-axm5516.o
2424
obj-$(CONFIG_COMMON_CLK_BD718XX) += clk-bd718x7.o
25+
obj-$(CONFIG_COMMON_CLK_BM1880) += clk-bm1880.o
2526
obj-$(CONFIG_COMMON_CLK_CDCE706) += clk-cdce706.o
2627
obj-$(CONFIG_COMMON_CLK_CDCE925) += clk-cdce925.o
2728
obj-$(CONFIG_ARCH_CLPS711X) += clk-clps711x.o

0 commit comments

Comments
 (0)