Skip to content

Commit d0f11d1

Browse files
Icenowymripard
authored andcommitted
clk: sunxi-ng: add support for V3s CCU
V3s has a similar but cut-down CCU to H3. Some muxes, especially clocks about CSI, are different, which makes it to need a new CCU driver. Add such a new driver for it. Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
1 parent 4a9decc commit d0f11d1

File tree

6 files changed

+851
-0
lines changed

6 files changed

+851
-0
lines changed

drivers/clk/sunxi-ng/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,15 @@ config SUN8I_H3_CCU
109109
select SUNXI_CCU_PHASE
110110
default MACH_SUN8I
111111

112+
config SUN8I_V3S_CCU
113+
bool "Support for the Allwinner V3s CCU"
114+
select SUNXI_CCU_DIV
115+
select SUNXI_CCU_NK
116+
select SUNXI_CCU_NKM
117+
select SUNXI_CCU_NKMP
118+
select SUNXI_CCU_NM
119+
select SUNXI_CCU_MP
120+
select SUNXI_CCU_PHASE
121+
default MACH_SUN8I
122+
112123
endif

drivers/clk/sunxi-ng/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ obj-$(CONFIG_SUN6I_A31_CCU) += ccu-sun6i-a31.o
2323
obj-$(CONFIG_SUN8I_A23_CCU) += ccu-sun8i-a23.o
2424
obj-$(CONFIG_SUN8I_A33_CCU) += ccu-sun8i-a33.o
2525
obj-$(CONFIG_SUN8I_H3_CCU) += ccu-sun8i-h3.o
26+
obj-$(CONFIG_SUN8I_V3S_CCU) += ccu-sun8i-v3s.o

0 commit comments

Comments
 (0)