Maxime Ripard | 1d80c14 | 2016-06-29 21:05:23 +0200 | [diff] [blame] | 1 | config SUNXI_CCU |
| 2 | bool "Clock support for Allwinner SoCs" |
Jean Delvare | d63a5e7 | 2016-09-08 23:28:29 +0200 | [diff] [blame] | 3 | depends on ARCH_SUNXI || COMPILE_TEST |
Tobias Regnery | aa01338 | 2017-03-27 11:57:53 +0200 | [diff] [blame^] | 4 | select RESET_CONTROLLER |
Maxime Ripard | 1d80c14 | 2016-06-29 21:05:23 +0200 | [diff] [blame] | 5 | default ARCH_SUNXI |
Maxime Ripard | 89a3dfb | 2016-06-29 21:05:24 +0200 | [diff] [blame] | 6 | |
| 7 | if SUNXI_CCU |
| 8 | |
| 9 | # Base clock types |
| 10 | |
Maxime Ripard | e9b9321 | 2016-06-29 21:05:28 +0200 | [diff] [blame] | 11 | config SUNXI_CCU_DIV |
| 12 | bool |
| 13 | select SUNXI_CCU_MUX |
| 14 | |
Maxime Ripard | 89a3dfb | 2016-06-29 21:05:24 +0200 | [diff] [blame] | 15 | config SUNXI_CCU_FRAC |
| 16 | bool |
| 17 | |
Maxime Ripard | 1a7e7c3 | 2016-06-29 21:05:25 +0200 | [diff] [blame] | 18 | config SUNXI_CCU_GATE |
| 19 | bool |
| 20 | |
Maxime Ripard | 2a65ed4 | 2016-06-29 21:05:26 +0200 | [diff] [blame] | 21 | config SUNXI_CCU_MUX |
| 22 | bool |
| 23 | |
Maxime Ripard | aa15233 | 2016-08-30 10:38:07 +0200 | [diff] [blame] | 24 | config SUNXI_CCU_MULT |
| 25 | bool |
| 26 | select SUNXI_CCU_MUX |
| 27 | |
Maxime Ripard | 6f9f7f8 | 2016-06-29 21:05:27 +0200 | [diff] [blame] | 28 | config SUNXI_CCU_PHASE |
| 29 | bool |
| 30 | |
Maxime Ripard | 2ab836d | 2016-06-29 21:05:29 +0200 | [diff] [blame] | 31 | # Multi-factor clocks |
| 32 | |
Maxime Ripard | adbfb00 | 2016-06-29 21:05:30 +0200 | [diff] [blame] | 33 | config SUNXI_CCU_NK |
| 34 | bool |
| 35 | select SUNXI_CCU_GATE |
| 36 | |
Maxime Ripard | df6561e | 2016-06-29 21:05:32 +0200 | [diff] [blame] | 37 | config SUNXI_CCU_NKM |
| 38 | bool |
Maxime Ripard | df6561e | 2016-06-29 21:05:32 +0200 | [diff] [blame] | 39 | select SUNXI_CCU_GATE |
| 40 | |
Maxime Ripard | 4f728b5 | 2016-06-29 21:05:33 +0200 | [diff] [blame] | 41 | config SUNXI_CCU_NKMP |
| 42 | bool |
Maxime Ripard | 4f728b5 | 2016-06-29 21:05:33 +0200 | [diff] [blame] | 43 | select SUNXI_CCU_GATE |
| 44 | |
Maxime Ripard | 6174a1e | 2016-06-29 21:05:31 +0200 | [diff] [blame] | 45 | config SUNXI_CCU_NM |
| 46 | bool |
Maxime Ripard | 6174a1e | 2016-06-29 21:05:31 +0200 | [diff] [blame] | 47 | select SUNXI_CCU_FRAC |
| 48 | select SUNXI_CCU_GATE |
| 49 | |
Maxime Ripard | 2ab836d | 2016-06-29 21:05:29 +0200 | [diff] [blame] | 50 | config SUNXI_CCU_MP |
| 51 | bool |
| 52 | select SUNXI_CCU_GATE |
| 53 | select SUNXI_CCU_MUX |
| 54 | |
Maxime Ripard | 0577e48 | 2016-06-29 21:05:34 +0200 | [diff] [blame] | 55 | # SoC Drivers |
| 56 | |
Maxime Ripard | c6a0637 | 2016-07-06 08:31:34 +0200 | [diff] [blame] | 57 | config SUN50I_A64_CCU |
| 58 | bool "Support for the Allwinner A64 CCU" |
| 59 | select SUNXI_CCU_DIV |
| 60 | select SUNXI_CCU_NK |
| 61 | select SUNXI_CCU_NKM |
| 62 | select SUNXI_CCU_NKMP |
| 63 | select SUNXI_CCU_NM |
| 64 | select SUNXI_CCU_MP |
| 65 | select SUNXI_CCU_PHASE |
| 66 | default ARM64 && ARCH_SUNXI |
| 67 | |
Maxime Ripard | 5e73761 | 2016-10-04 10:09:58 +0200 | [diff] [blame] | 68 | config SUN5I_CCU |
| 69 | bool "Support for the Allwinner sun5i family CCM" |
| 70 | select SUNXI_CCU_DIV |
Arnd Bergmann | f3f1ea3 | 2017-02-02 15:33:57 +0100 | [diff] [blame] | 71 | select SUNXI_CCU_MULT |
Maxime Ripard | 5e73761 | 2016-10-04 10:09:58 +0200 | [diff] [blame] | 72 | select SUNXI_CCU_NK |
| 73 | select SUNXI_CCU_NKM |
| 74 | select SUNXI_CCU_NM |
| 75 | select SUNXI_CCU_MP |
| 76 | select SUNXI_CCU_PHASE |
| 77 | default MACH_SUN5I |
| 78 | |
Chen-Yu Tsai | c6e6c96 | 2016-08-25 14:21:59 +0800 | [diff] [blame] | 79 | config SUN6I_A31_CCU |
| 80 | bool "Support for the Allwinner A31/A31s CCU" |
| 81 | select SUNXI_CCU_DIV |
| 82 | select SUNXI_CCU_NK |
| 83 | select SUNXI_CCU_NKM |
Arnd Bergmann | 69c9ae5 | 2017-02-14 22:29:45 +0100 | [diff] [blame] | 84 | select SUNXI_CCU_NKMP |
Chen-Yu Tsai | c6e6c96 | 2016-08-25 14:21:59 +0800 | [diff] [blame] | 85 | select SUNXI_CCU_NM |
| 86 | select SUNXI_CCU_MP |
| 87 | select SUNXI_CCU_PHASE |
| 88 | default MACH_SUN6I |
| 89 | |
Maxime Ripard | 5690879 | 2016-08-31 16:55:00 +0200 | [diff] [blame] | 90 | config SUN8I_A23_CCU |
| 91 | bool "Support for the Allwinner A23 CCU" |
| 92 | select SUNXI_CCU_DIV |
| 93 | select SUNXI_CCU_MULT |
| 94 | select SUNXI_CCU_NK |
| 95 | select SUNXI_CCU_NKM |
| 96 | select SUNXI_CCU_NKMP |
| 97 | select SUNXI_CCU_NM |
| 98 | select SUNXI_CCU_MP |
| 99 | select SUNXI_CCU_PHASE |
| 100 | default MACH_SUN8I |
| 101 | |
Maxime Ripard | d05c748 | 2016-08-24 14:10:15 +0200 | [diff] [blame] | 102 | config SUN8I_A33_CCU |
| 103 | bool "Support for the Allwinner A33 CCU" |
| 104 | select SUNXI_CCU_DIV |
| 105 | select SUNXI_CCU_MULT |
| 106 | select SUNXI_CCU_NK |
| 107 | select SUNXI_CCU_NKM |
| 108 | select SUNXI_CCU_NKMP |
| 109 | select SUNXI_CCU_NM |
| 110 | select SUNXI_CCU_MP |
| 111 | select SUNXI_CCU_PHASE |
| 112 | default MACH_SUN8I |
| 113 | |
Maxime Ripard | 0577e48 | 2016-06-29 21:05:34 +0200 | [diff] [blame] | 114 | config SUN8I_H3_CCU |
| 115 | bool "Support for the Allwinner H3 CCU" |
| 116 | select SUNXI_CCU_DIV |
| 117 | select SUNXI_CCU_NK |
| 118 | select SUNXI_CCU_NKM |
| 119 | select SUNXI_CCU_NKMP |
| 120 | select SUNXI_CCU_NM |
| 121 | select SUNXI_CCU_MP |
| 122 | select SUNXI_CCU_PHASE |
Maxime Ripard | 5dc3916 | 2016-07-11 22:34:48 +0200 | [diff] [blame] | 123 | default MACH_SUN8I |
Maxime Ripard | 0577e48 | 2016-06-29 21:05:34 +0200 | [diff] [blame] | 124 | |
Icenowy Zheng | d0f11d1 | 2017-01-20 01:54:45 +0800 | [diff] [blame] | 125 | config SUN8I_V3S_CCU |
| 126 | bool "Support for the Allwinner V3s CCU" |
| 127 | select SUNXI_CCU_DIV |
| 128 | select SUNXI_CCU_NK |
| 129 | select SUNXI_CCU_NKM |
| 130 | select SUNXI_CCU_NKMP |
| 131 | select SUNXI_CCU_NM |
| 132 | select SUNXI_CCU_MP |
| 133 | select SUNXI_CCU_PHASE |
| 134 | default MACH_SUN8I |
| 135 | |
Chen-Yu Tsai | b8eb71d | 2017-01-28 20:22:34 +0800 | [diff] [blame] | 136 | config SUN9I_A80_CCU |
| 137 | bool "Support for the Allwinner A80 CCU" |
| 138 | select SUNXI_CCU_DIV |
| 139 | select SUNXI_CCU_GATE |
| 140 | select SUNXI_CCU_NKMP |
| 141 | select SUNXI_CCU_NM |
| 142 | select SUNXI_CCU_MP |
| 143 | select SUNXI_CCU_PHASE |
| 144 | default MACH_SUN9I |
| 145 | |
Maxime Ripard | 89a3dfb | 2016-06-29 21:05:24 +0200 | [diff] [blame] | 146 | endif |