Skip to content

Commit f06ac3e

Browse files
Xianwei Zhaojbrun3t
authored andcommitted
clk: meson: c3: add c3 clock peripherals controller driver
Add the C3 peripherals clock controller driver in the C3 SoC family. [jbrunet: fix Kconfig select order and 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 8a9a129 commit f06ac3e

File tree

3 files changed

+2380
-0
lines changed

3 files changed

+2380
-0
lines changed

drivers/clk/meson/Kconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,20 @@ config COMMON_CLK_C3_PLL
145145
AKA C3. Say Y if you want the board to work, because PLLs are the parent
146146
of most peripherals.
147147

148+
config COMMON_CLK_C3_PERIPHERALS
149+
tristate "Amlogic C3 peripherals clock controller"
150+
depends on ARM64
151+
default y
152+
select COMMON_CLK_MESON_REGMAP
153+
select COMMON_CLK_MESON_DUALDIV
154+
select COMMON_CLK_MESON_CLKC_UTILS
155+
imply COMMON_CLK_SCMI
156+
imply COMMON_CLK_C3_PLL
157+
help
158+
Support for the Peripherals clock controller on Amlogic C302X and
159+
C308L devices, AKA C3. Say Y if you want the peripherals clock to
160+
work.
161+
148162
config COMMON_CLK_G12A
149163
tristate "G12 and SM1 SoC clock controllers support"
150164
depends on ARM64

drivers/clk/meson/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ 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
2323
obj-$(CONFIG_COMMON_CLK_C3_PLL) += c3-pll.o
24+
obj-$(CONFIG_COMMON_CLK_C3_PERIPHERALS) += c3-peripherals.o
2425
obj-$(CONFIG_COMMON_CLK_GXBB) += gxbb.o gxbb-aoclk.o
2526
obj-$(CONFIG_COMMON_CLK_G12A) += g12a.o g12a-aoclk.o
2627
obj-$(CONFIG_COMMON_CLK_MESON8B) += meson8b.o meson8-ddr.o

0 commit comments

Comments
 (0)