Skip to content

Commit 5e73761

Browse files
committed
clk: sunxi-ng: Add sun5i CCU driver
The Allwinner A10s, A13, R8 and NextThing GR8 are all based on the same silicon, and all share the same clocks. However, they're not packaged in the same way, and therefore not all the controllers are actually available on all these SoCs. Introduce a clock controller driver for all these SoCs with different compatibles to take that into account. Acked-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
1 parent 7c09b85 commit 5e73761

File tree

6 files changed

+1235
-0
lines changed

6 files changed

+1235
-0
lines changed

drivers/clk/sunxi-ng/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,16 @@ config SUN50I_A64_CCU
6464
select SUNXI_CCU_PHASE
6565
default ARM64 && ARCH_SUNXI
6666

67+
config SUN5I_CCU
68+
bool "Support for the Allwinner sun5i family CCM"
69+
select SUNXI_CCU_DIV
70+
select SUNXI_CCU_NK
71+
select SUNXI_CCU_NKM
72+
select SUNXI_CCU_NM
73+
select SUNXI_CCU_MP
74+
select SUNXI_CCU_PHASE
75+
default MACH_SUN5I
76+
6777
config SUN6I_A31_CCU
6878
bool "Support for the Allwinner A31/A31s CCU"
6979
select SUNXI_CCU_DIV

drivers/clk/sunxi-ng/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ obj-$(CONFIG_SUNXI_CCU_MP) += ccu_mp.o
1919

2020
# SoC support
2121
obj-$(CONFIG_SUN50I_A64_CCU) += ccu-sun50i-a64.o
22+
obj-$(CONFIG_SUN5I_CCU) += ccu-sun5i.o
2223
obj-$(CONFIG_SUN6I_A31_CCU) += ccu-sun6i-a31.o
2324
obj-$(CONFIG_SUN8I_A23_CCU) += ccu-sun8i-a23.o
2425
obj-$(CONFIG_SUN8I_A33_CCU) += ccu-sun8i-a33.o

0 commit comments

Comments
 (0)