Skip to content

Commit 8a9a129

Browse files
Xianwei Zhaojbrun3t
authored andcommitted
clk: meson: c3: add support for the C3 SoC PLL clock
Add the C3 PLL clock controller driver for the Amlogic C3 SoC family. [jbrunet: fixed probe function name] Co-developed-by: Chuan Liu <[email protected]> Signed-off-by: Chuan Liu <[email protected]> Signed-off-by: Xianwei Zhao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jerome Brunet <[email protected]>
1 parent d7583cd commit 8a9a129

File tree

3 files changed

+760
-0
lines changed

3 files changed

+760
-0
lines changed

drivers/clk/meson/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,19 @@ config COMMON_CLK_A1_PERIPHERALS
132132
device, A1 SoC Family. Say Y if you want A1 Peripherals clock
133133
controller to work.
134134

135+
config COMMON_CLK_C3_PLL
136+
tristate "Amlogic C3 PLL clock controller"
137+
depends on ARM64
138+
default y
139+
select COMMON_CLK_MESON_REGMAP
140+
select COMMON_CLK_MESON_PLL
141+
select COMMON_CLK_MESON_CLKC_UTILS
142+
imply COMMON_CLK_SCMI
143+
help
144+
Support for the PLL clock controller on Amlogic C302X and C308L devices,
145+
AKA C3. Say Y if you want the board to work, because PLLs are the parent
146+
of most peripherals.
147+
135148
config COMMON_CLK_G12A
136149
tristate "G12 and SM1 SoC clock controllers support"
137150
depends on ARM64

drivers/clk/meson/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ obj-$(CONFIG_COMMON_CLK_AXG) += axg.o axg-aoclk.o
2020
obj-$(CONFIG_COMMON_CLK_AXG_AUDIO) += axg-audio.o
2121
obj-$(CONFIG_COMMON_CLK_A1_PLL) += a1-pll.o
2222
obj-$(CONFIG_COMMON_CLK_A1_PERIPHERALS) += a1-peripherals.o
23+
obj-$(CONFIG_COMMON_CLK_C3_PLL) += c3-pll.o
2324
obj-$(CONFIG_COMMON_CLK_GXBB) += gxbb.o gxbb-aoclk.o
2425
obj-$(CONFIG_COMMON_CLK_G12A) += g12a.o g12a-aoclk.o
2526
obj-$(CONFIG_COMMON_CLK_MESON8B) += meson8b.o meson8-ddr.o

0 commit comments

Comments
 (0)