2016-06-30 02:05:23 +07:00
|
|
|
config SUNXI_CCU
|
|
|
|
bool "Clock support for Allwinner SoCs"
|
2016-09-09 04:28:29 +07:00
|
|
|
depends on ARCH_SUNXI || COMPILE_TEST
|
2016-06-30 02:05:23 +07:00
|
|
|
default ARCH_SUNXI
|
2016-06-30 02:05:24 +07:00
|
|
|
|
|
|
|
if SUNXI_CCU
|
|
|
|
|
|
|
|
# Base clock types
|
|
|
|
|
2016-06-30 02:05:28 +07:00
|
|
|
config SUNXI_CCU_DIV
|
|
|
|
bool
|
|
|
|
select SUNXI_CCU_MUX
|
|
|
|
|
2016-06-30 02:05:24 +07:00
|
|
|
config SUNXI_CCU_FRAC
|
|
|
|
bool
|
|
|
|
|
2016-06-30 02:05:25 +07:00
|
|
|
config SUNXI_CCU_GATE
|
|
|
|
bool
|
|
|
|
|
2016-06-30 02:05:26 +07:00
|
|
|
config SUNXI_CCU_MUX
|
|
|
|
bool
|
|
|
|
|
2016-08-30 15:38:07 +07:00
|
|
|
config SUNXI_CCU_MULT
|
|
|
|
bool
|
|
|
|
select SUNXI_CCU_MUX
|
|
|
|
|
2016-06-30 02:05:27 +07:00
|
|
|
config SUNXI_CCU_PHASE
|
|
|
|
bool
|
|
|
|
|
2016-06-30 02:05:29 +07:00
|
|
|
# Multi-factor clocks
|
|
|
|
|
2016-06-30 02:05:30 +07:00
|
|
|
config SUNXI_CCU_NK
|
|
|
|
bool
|
|
|
|
select SUNXI_CCU_GATE
|
|
|
|
|
2016-06-30 02:05:32 +07:00
|
|
|
config SUNXI_CCU_NKM
|
|
|
|
bool
|
|
|
|
select SUNXI_CCU_GATE
|
|
|
|
|
2016-06-30 02:05:33 +07:00
|
|
|
config SUNXI_CCU_NKMP
|
|
|
|
bool
|
|
|
|
select SUNXI_CCU_GATE
|
|
|
|
|
2016-06-30 02:05:31 +07:00
|
|
|
config SUNXI_CCU_NM
|
|
|
|
bool
|
|
|
|
select SUNXI_CCU_FRAC
|
|
|
|
select SUNXI_CCU_GATE
|
|
|
|
|
2016-06-30 02:05:29 +07:00
|
|
|
config SUNXI_CCU_MP
|
|
|
|
bool
|
|
|
|
select SUNXI_CCU_GATE
|
|
|
|
select SUNXI_CCU_MUX
|
|
|
|
|
2016-06-30 02:05:34 +07:00
|
|
|
# SoC Drivers
|
|
|
|
|
2016-07-06 13:31:34 +07:00
|
|
|
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
|
|
|
|
|
2016-08-25 13:21:59 +07:00
|
|
|
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
|
|
|
|
|
2016-08-31 21:55:00 +07:00
|
|
|
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
|
|
|
|
|
2016-08-24 19:10:15 +07:00
|
|
|
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
|
|
|
|
|
2016-06-30 02:05:34 +07:00
|
|
|
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
|
2016-07-12 03:34:48 +07:00
|
|
|
default MACH_SUN8I
|
2016-06-30 02:05:34 +07:00
|
|
|
|
2016-06-30 02:05:24 +07:00
|
|
|
endif
|