2016-06-30 03:05:23 +08:00
|
|
|
config SUNXI_CCU
|
|
|
|
bool "Clock support for Allwinner SoCs"
|
2016-09-09 05:28:29 +08:00
|
|
|
depends on ARCH_SUNXI || COMPILE_TEST
|
2017-03-27 17:57:53 +08:00
|
|
|
select RESET_CONTROLLER
|
2016-06-30 03:05:23 +08:00
|
|
|
default ARCH_SUNXI
|
2016-06-30 03:05:24 +08:00
|
|
|
|
|
|
|
if SUNXI_CCU
|
|
|
|
|
|
|
|
# Base clock types
|
|
|
|
|
2016-06-30 03:05:28 +08:00
|
|
|
config SUNXI_CCU_DIV
|
|
|
|
bool
|
|
|
|
select SUNXI_CCU_MUX
|
|
|
|
|
2016-06-30 03:05:24 +08:00
|
|
|
config SUNXI_CCU_FRAC
|
|
|
|
bool
|
|
|
|
|
2016-06-30 03:05:25 +08:00
|
|
|
config SUNXI_CCU_GATE
|
2017-04-27 19:02:31 +08:00
|
|
|
def_bool y
|
2016-06-30 03:05:25 +08:00
|
|
|
|
2016-06-30 03:05:26 +08:00
|
|
|
config SUNXI_CCU_MUX
|
|
|
|
bool
|
|
|
|
|
2016-08-30 16:38:07 +08:00
|
|
|
config SUNXI_CCU_MULT
|
|
|
|
bool
|
|
|
|
select SUNXI_CCU_MUX
|
|
|
|
|
2016-06-30 03:05:27 +08:00
|
|
|
config SUNXI_CCU_PHASE
|
|
|
|
bool
|
|
|
|
|
2016-06-30 03:05:29 +08:00
|
|
|
# Multi-factor clocks
|
|
|
|
|
2016-06-30 03:05:30 +08:00
|
|
|
config SUNXI_CCU_NK
|
|
|
|
bool
|
|
|
|
select SUNXI_CCU_GATE
|
|
|
|
|
2016-06-30 03:05:32 +08:00
|
|
|
config SUNXI_CCU_NKM
|
|
|
|
bool
|
|
|
|
select SUNXI_CCU_GATE
|
|
|
|
|
2016-06-30 03:05:33 +08:00
|
|
|
config SUNXI_CCU_NKMP
|
|
|
|
bool
|
|
|
|
select SUNXI_CCU_GATE
|
|
|
|
|
2016-06-30 03:05:31 +08:00
|
|
|
config SUNXI_CCU_NM
|
|
|
|
bool
|
|
|
|
select SUNXI_CCU_FRAC
|
|
|
|
select SUNXI_CCU_GATE
|
|
|
|
|
2016-06-30 03:05:29 +08:00
|
|
|
config SUNXI_CCU_MP
|
|
|
|
bool
|
|
|
|
select SUNXI_CCU_GATE
|
|
|
|
select SUNXI_CCU_MUX
|
|
|
|
|
2016-06-30 03:05:34 +08:00
|
|
|
# SoC Drivers
|
|
|
|
|
2016-07-06 14:31:34 +08: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
|
2017-03-03 01:43:57 +08:00
|
|
|
depends on (ARM64 && ARCH_SUNXI) || COMPILE_TEST
|
2016-07-06 14:31:34 +08:00
|
|
|
|
2016-10-04 16:09:58 +08:00
|
|
|
config SUN5I_CCU
|
|
|
|
bool "Support for the Allwinner sun5i family CCM"
|
|
|
|
select SUNXI_CCU_DIV
|
2017-02-02 22:33:57 +08:00
|
|
|
select SUNXI_CCU_MULT
|
2016-10-04 16:09:58 +08:00
|
|
|
select SUNXI_CCU_NK
|
|
|
|
select SUNXI_CCU_NKM
|
|
|
|
select SUNXI_CCU_NM
|
|
|
|
select SUNXI_CCU_MP
|
|
|
|
select SUNXI_CCU_PHASE
|
|
|
|
default MACH_SUN5I
|
2017-03-03 01:43:57 +08:00
|
|
|
depends on MACH_SUN5I || COMPILE_TEST
|
2016-10-04 16:09:58 +08:00
|
|
|
|
2016-08-25 14:21:59 +08: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
|
2017-02-15 05:29:45 +08:00
|
|
|
select SUNXI_CCU_NKMP
|
2016-08-25 14:21:59 +08:00
|
|
|
select SUNXI_CCU_NM
|
|
|
|
select SUNXI_CCU_MP
|
|
|
|
select SUNXI_CCU_PHASE
|
|
|
|
default MACH_SUN6I
|
2017-03-03 01:43:57 +08:00
|
|
|
depends on MACH_SUN6I || COMPILE_TEST
|
2016-08-25 14:21:59 +08:00
|
|
|
|
2016-08-31 22:55:00 +08: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
|
2017-03-03 01:43:57 +08:00
|
|
|
depends on MACH_SUN8I || COMPILE_TEST
|
2016-08-31 22:55:00 +08:00
|
|
|
|
2016-08-24 20:10:15 +08: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
|
2017-03-03 01:43:57 +08:00
|
|
|
depends on MACH_SUN8I || COMPILE_TEST
|
2016-08-24 20:10:15 +08:00
|
|
|
|
2016-06-30 03:05:34 +08: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
|
2017-03-02 04:13:39 +08:00
|
|
|
default MACH_SUN8I || (ARM64 && ARCH_SUNXI)
|
2017-03-03 01:43:57 +08:00
|
|
|
depends on MACH_SUN8I || (ARM64 && ARCH_SUNXI) || COMPILE_TEST
|
2016-06-30 03:05:34 +08:00
|
|
|
|
2017-01-20 01:54:45 +08:00
|
|
|
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
|
2017-03-03 01:43:57 +08:00
|
|
|
depends on MACH_SUN8I || COMPILE_TEST
|
2017-01-20 01:54:45 +08:00
|
|
|
|
2017-05-15 00:30:34 +08:00
|
|
|
config SUN8I_DE2_CCU
|
|
|
|
bool "Support for the Allwinner SoCs DE2 CCU"
|
|
|
|
select SUNXI_CCU_DIV
|
|
|
|
select SUNXI_CCU_GATE
|
|
|
|
|
2017-01-28 20:22:34 +08:00
|
|
|
config SUN9I_A80_CCU
|
|
|
|
bool "Support for the Allwinner A80 CCU"
|
|
|
|
select SUNXI_CCU_DIV
|
2017-04-10 20:15:44 +08:00
|
|
|
select SUNXI_CCU_MULT
|
2017-01-28 20:22:34 +08:00
|
|
|
select SUNXI_CCU_GATE
|
|
|
|
select SUNXI_CCU_NKMP
|
|
|
|
select SUNXI_CCU_NM
|
|
|
|
select SUNXI_CCU_MP
|
|
|
|
select SUNXI_CCU_PHASE
|
|
|
|
default MACH_SUN9I
|
2017-03-03 01:43:57 +08:00
|
|
|
depends on MACH_SUN9I || COMPILE_TEST
|
2017-01-28 20:22:34 +08:00
|
|
|
|
2017-04-04 17:50:57 +08:00
|
|
|
config SUN8I_R_CCU
|
|
|
|
bool "Support for Allwinner SoCs' PRCM CCUs"
|
|
|
|
select SUNXI_CCU_DIV
|
|
|
|
select SUNXI_CCU_GATE
|
2017-05-18 05:19:01 +08:00
|
|
|
select SUNXI_CCU_MP
|
2017-04-04 17:50:57 +08:00
|
|
|
default MACH_SUN8I || (ARCH_SUNXI && ARM64)
|
2017-01-28 20:22:34 +08:00
|
|
|
|
2016-06-30 03:05:24 +08:00
|
|
|
endif
|