mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
5e73761786
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>
134 lines
2.3 KiB
Plaintext
134 lines
2.3 KiB
Plaintext
config SUNXI_CCU
|
|
bool "Clock support for Allwinner SoCs"
|
|
depends on ARCH_SUNXI || COMPILE_TEST
|
|
default ARCH_SUNXI
|
|
|
|
if SUNXI_CCU
|
|
|
|
# Base clock types
|
|
|
|
config SUNXI_CCU_DIV
|
|
bool
|
|
select SUNXI_CCU_MUX
|
|
|
|
config SUNXI_CCU_FRAC
|
|
bool
|
|
|
|
config SUNXI_CCU_GATE
|
|
bool
|
|
|
|
config SUNXI_CCU_MUX
|
|
bool
|
|
|
|
config SUNXI_CCU_MULT
|
|
bool
|
|
select SUNXI_CCU_MUX
|
|
|
|
config SUNXI_CCU_PHASE
|
|
bool
|
|
|
|
# Multi-factor clocks
|
|
|
|
config SUNXI_CCU_NK
|
|
bool
|
|
select SUNXI_CCU_GATE
|
|
|
|
config SUNXI_CCU_NKM
|
|
bool
|
|
select SUNXI_CCU_GATE
|
|
|
|
config SUNXI_CCU_NKMP
|
|
bool
|
|
select SUNXI_CCU_GATE
|
|
|
|
config SUNXI_CCU_NM
|
|
bool
|
|
select SUNXI_CCU_FRAC
|
|
select SUNXI_CCU_GATE
|
|
|
|
config SUNXI_CCU_MP
|
|
bool
|
|
select SUNXI_CCU_GATE
|
|
select SUNXI_CCU_MUX
|
|
|
|
# SoC Drivers
|
|
|
|
config SUN50I_A64_CCU
|
|
bool "Support for the Allwinner A64 CCU"
|
|
select SUNXI_CCU_DIV
|
|
select SUNXI_CCU_NK
|
|
select SUNXI_CCU_NKM
|
|
select SUNXI_CCU_NKMP
|
|
select SUNXI_CCU_NM
|
|
select SUNXI_CCU_MP
|
|
select SUNXI_CCU_PHASE
|
|
default ARM64 && ARCH_SUNXI
|
|
|
|
config SUN5I_CCU
|
|
bool "Support for the Allwinner sun5i family CCM"
|
|
select SUNXI_CCU_DIV
|
|
select SUNXI_CCU_NK
|
|
select SUNXI_CCU_NKM
|
|
select SUNXI_CCU_NM
|
|
select SUNXI_CCU_MP
|
|
select SUNXI_CCU_PHASE
|
|
default MACH_SUN5I
|
|
|
|
config SUN6I_A31_CCU
|
|
bool "Support for the Allwinner A31/A31s CCU"
|
|
select SUNXI_CCU_DIV
|
|
select SUNXI_CCU_NK
|
|
select SUNXI_CCU_NKM
|
|
select SUNXI_CCU_NM
|
|
select SUNXI_CCU_MP
|
|
select SUNXI_CCU_PHASE
|
|
default MACH_SUN6I
|
|
|
|
config SUN8I_A23_CCU
|
|
bool "Support for the Allwinner A23 CCU"
|
|
select SUNXI_CCU_DIV
|
|
select SUNXI_CCU_MULT
|
|
select SUNXI_CCU_NK
|
|
select SUNXI_CCU_NKM
|
|
select SUNXI_CCU_NKMP
|
|
select SUNXI_CCU_NM
|
|
select SUNXI_CCU_MP
|
|
select SUNXI_CCU_PHASE
|
|
default MACH_SUN8I
|
|
|
|
config SUN8I_A33_CCU
|
|
bool "Support for the Allwinner A33 CCU"
|
|
select SUNXI_CCU_DIV
|
|
select SUNXI_CCU_MULT
|
|
select SUNXI_CCU_NK
|
|
select SUNXI_CCU_NKM
|
|
select SUNXI_CCU_NKMP
|
|
select SUNXI_CCU_NM
|
|
select SUNXI_CCU_MP
|
|
select SUNXI_CCU_PHASE
|
|
default MACH_SUN8I
|
|
|
|
config SUN8I_H3_CCU
|
|
bool "Support for the Allwinner H3 CCU"
|
|
select SUNXI_CCU_DIV
|
|
select SUNXI_CCU_NK
|
|
select SUNXI_CCU_NKM
|
|
select SUNXI_CCU_NKMP
|
|
select SUNXI_CCU_NM
|
|
select SUNXI_CCU_MP
|
|
select SUNXI_CCU_PHASE
|
|
default MACH_SUN8I
|
|
|
|
config SUN8I_V3S_CCU
|
|
bool "Support for the Allwinner V3s CCU"
|
|
select SUNXI_CCU_DIV
|
|
select SUNXI_CCU_NK
|
|
select SUNXI_CCU_NKM
|
|
select SUNXI_CCU_NKMP
|
|
select SUNXI_CCU_NM
|
|
select SUNXI_CCU_MP
|
|
select SUNXI_CCU_PHASE
|
|
default MACH_SUN8I
|
|
|
|
endif
|