Skip to content

Commit 7b9487a

Browse files
paul-walmsley-sifivebebarino
authored andcommitted
clk: analogbits: add Wide-Range PLL library
Add common library code for the Analog Bits Wide-Range PLL (WRPLL) IP block, as implemented in TSMC CLN28HPC. There is no bus interface or register target associated with this PLL. This library is intended to be used by drivers for IP blocks that expose registers connected to the PLL configuration and status signals. Based on code originally written by Wesley Terpstra <[email protected]>: riscvarchive/riscv-linux@999529e This version incorporates several changes requested by Stephen Boyd <[email protected]>. Signed-off-by: Paul Walmsley <[email protected]> Signed-off-by: Paul Walmsley <[email protected]> Cc: Wesley Terpstra <[email protected]> Cc: Palmer Dabbelt <[email protected]> Cc: Michael Turquette <[email protected]> Cc: Stephen Boyd <[email protected]> Cc: Megan Wachs <[email protected]> Cc: [email protected] Cc: [email protected] [[email protected]: Fix some const issues] Signed-off-by: Stephen Boyd <[email protected]>
1 parent a6c6cb2 commit 7b9487a

File tree

7 files changed

+457
-0
lines changed

7 files changed

+457
-0
lines changed

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,12 @@ F: drivers/iio/adc/ltc2497*
960960
X: drivers/iio/*/adjd*
961961
F: drivers/staging/iio/*/ad*
962962

963+
ANALOGBITS PLL LIBRARIES
964+
M: Paul Walmsley <[email protected]>
965+
S: Supported
966+
F: drivers/clk/analogbits/*
967+
F: include/linux/clk/analogbits*
968+
963969
ANDES ARCHITECTURE
964970
M: Greentime Hu <[email protected]>
965971
M: Vincent Chen <[email protected]>

drivers/clk/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: GPL-2.0
12

23
config CLKDEV_LOOKUP
34
bool
@@ -297,6 +298,7 @@ config COMMON_CLK_FIXED_MMIO
297298
Support for Memory Mapped IO Fixed clocks
298299

299300
source "drivers/clk/actions/Kconfig"
301+
source "drivers/clk/analogbits/Kconfig"
300302
source "drivers/clk/bcm/Kconfig"
301303
source "drivers/clk/hisilicon/Kconfig"
302304
source "drivers/clk/imgtec/Kconfig"

drivers/clk/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ obj-$(CONFIG_COMMON_CLK_XGENE) += clk-xgene.o
6464

6565
# please keep this section sorted lexicographically by directory path name
6666
obj-y += actions/
67+
obj-y += analogbits/
6768
obj-$(CONFIG_COMMON_CLK_AT91) += at91/
6869
obj-$(CONFIG_ARCH_ARTPEC) += axis/
6970
obj-$(CONFIG_ARC_PLAT_AXS10X) += axs10x/

drivers/clk/analogbits/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
config CLK_ANALOGBITS_WRPLL_CLN28HPC
2+
bool

drivers/clk/analogbits/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
obj-$(CONFIG_CLK_ANALOGBITS_WRPLL_CLN28HPC) += wrpll-cln28hpc.o

0 commit comments

Comments
 (0)