Skip to content

Commit 6486341

Browse files
Andrea della Portaffainelli
authored andcommitted
clk: rp1: Add support for clocks provided by RP1
RaspberryPi RP1 is an MFD providing, among other peripherals, several clock generators and PLLs that drives the sub-peripherals. Add the driver to support the clock providers. Signed-off-by: Andrea della Porta <andrea.porta@suse.com> Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested Link: https://lore.kernel.org/r/20250529135052.28398-4-andrea.porta@suse.com Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
1 parent acc379c commit 6486341

3 files changed

Lines changed: 1504 additions & 0 deletions

File tree

drivers/clk/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ config COMMON_CLK_RK808
8888
These multi-function devices have two fixed-rate oscillators, clocked at 32KHz each.
8989
Clkout1 is always on, Clkout2 can off by control register.
9090

91+
config COMMON_CLK_RP1
92+
tristate "Raspberry Pi RP1-based clock support"
93+
depends on MISC_RP1 || COMPILE_TEST
94+
default MISC_RP1
95+
help
96+
Enable common clock framework support for Raspberry Pi RP1.
97+
This multi-function device has 3 main PLLs and several clock
98+
generators to drive the internal sub-peripherals.
99+
91100
config COMMON_CLK_HI655X
92101
tristate "Clock driver for Hi655x" if EXPERT
93102
depends on (MFD_HI655X_PMIC || COMPILE_TEST)

drivers/clk/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ obj-$(CONFIG_CLK_LS1028A_PLLDIG) += clk-plldig.o
8484
obj-$(CONFIG_COMMON_CLK_PWM) += clk-pwm.o
8585
obj-$(CONFIG_CLK_QORIQ) += clk-qoriq.o
8686
obj-$(CONFIG_COMMON_CLK_RK808) += clk-rk808.o
87+
obj-$(CONFIG_COMMON_CLK_RP1) += clk-rp1.o
8788
obj-$(CONFIG_COMMON_CLK_HI655X) += clk-hi655x.o
8889
obj-$(CONFIG_COMMON_CLK_S2MPS11) += clk-s2mps11.o
8990
obj-$(CONFIG_COMMON_CLK_SCMI) += clk-scmi.o

0 commit comments

Comments
 (0)