1# SPDX-License-Identifier: GPL-2.0-only 2menu "Clock support for Amlogic platforms" 3 depends on ARCH_MESON || COMPILE_TEST 4 5config COMMON_CLK_MESON_REGMAP 6 tristate 7 select REGMAP 8 9config COMMON_CLK_MESON_DUALDIV 10 tristate 11 select COMMON_CLK_MESON_REGMAP 12 13config COMMON_CLK_MESON_MPLL 14 tristate 15 select COMMON_CLK_MESON_REGMAP 16 17config COMMON_CLK_MESON_PHASE 18 tristate 19 select COMMON_CLK_MESON_REGMAP 20 21config COMMON_CLK_MESON_PLL 22 tristate 23 select COMMON_CLK_MESON_REGMAP 24 25config COMMON_CLK_MESON_SCLK_DIV 26 tristate 27 select COMMON_CLK_MESON_REGMAP 28 29config COMMON_CLK_MESON_VID_PLL_DIV 30 tristate 31 select COMMON_CLK_MESON_REGMAP 32 33config COMMON_CLK_MESON_VCLK 34 tristate 35 select COMMON_CLK_MESON_REGMAP 36 37config COMMON_CLK_MESON_CLKC_UTILS 38 tristate 39 40config COMMON_CLK_MESON_AO_CLKC 41 tristate 42 select COMMON_CLK_MESON_REGMAP 43 select COMMON_CLK_MESON_CLKC_UTILS 44 select RESET_CONTROLLER 45 46config COMMON_CLK_MESON_EE_CLKC 47 tristate 48 select COMMON_CLK_MESON_REGMAP 49 select COMMON_CLK_MESON_CLKC_UTILS 50 51config COMMON_CLK_MESON_CPU_DYNDIV 52 tristate 53 select COMMON_CLK_MESON_REGMAP 54 55config COMMON_CLK_MESON8B 56 bool "Meson8 SoC Clock controller support" 57 depends on ARM 58 default y 59 select COMMON_CLK_MESON_REGMAP 60 select COMMON_CLK_MESON_CLKC_UTILS 61 select COMMON_CLK_MESON_MPLL 62 select COMMON_CLK_MESON_PLL 63 select MFD_SYSCON 64 select RESET_CONTROLLER 65 help 66 Support for the clock controller on AmLogic S802 (Meson8), 67 S805 (Meson8b) and S812 (Meson8m2) devices. Say Y if you 68 want peripherals and CPU frequency scaling to work. 69 70config COMMON_CLK_GXBB 71 tristate "GXBB and GXL SoC clock controllers support" 72 depends on ARM64 73 default y 74 select COMMON_CLK_MESON_REGMAP 75 select COMMON_CLK_MESON_DUALDIV 76 select COMMON_CLK_MESON_VID_PLL_DIV 77 select COMMON_CLK_MESON_MPLL 78 select COMMON_CLK_MESON_PLL 79 select COMMON_CLK_MESON_AO_CLKC 80 select COMMON_CLK_MESON_EE_CLKC 81 select MFD_SYSCON 82 help 83 Support for the clock controller on AmLogic S905 devices, aka gxbb. 84 Say Y if you want peripherals and CPU frequency scaling to work. 85 86config COMMON_CLK_AXG 87 tristate "AXG SoC clock controllers support" 88 depends on ARM64 89 default y 90 select COMMON_CLK_MESON_REGMAP 91 select COMMON_CLK_MESON_DUALDIV 92 select COMMON_CLK_MESON_MPLL 93 select COMMON_CLK_MESON_PLL 94 select COMMON_CLK_MESON_AO_CLKC 95 select COMMON_CLK_MESON_EE_CLKC 96 select MFD_SYSCON 97 help 98 Support for the clock controller on AmLogic A113D devices, aka axg. 99 Say Y if you want peripherals and CPU frequency scaling to work. 100 101config COMMON_CLK_AXG_AUDIO 102 tristate "Meson AXG Audio Clock Controller Driver" 103 depends on ARM64 104 select COMMON_CLK_MESON_REGMAP 105 select COMMON_CLK_MESON_PHASE 106 select COMMON_CLK_MESON_SCLK_DIV 107 select COMMON_CLK_MESON_CLKC_UTILS 108 select REGMAP_MMIO 109 help 110 Support for the audio clock controller on AmLogic A113D devices, 111 aka axg, Say Y if you want audio subsystem to work. 112 113config COMMON_CLK_A1_PLL 114 tristate "Amlogic A1 SoC PLL controller support" 115 depends on ARM64 116 select COMMON_CLK_MESON_REGMAP 117 select COMMON_CLK_MESON_CLKC_UTILS 118 select COMMON_CLK_MESON_PLL 119 help 120 Support for the PLL clock controller on Amlogic A113L based 121 device, A1 SoC Family. Say Y if you want A1 PLL clock controller 122 to work. 123 124config COMMON_CLK_A1_PERIPHERALS 125 tristate "Amlogic A1 SoC Peripherals clock controller support" 126 depends on ARM64 127 select COMMON_CLK_MESON_DUALDIV 128 select COMMON_CLK_MESON_REGMAP 129 select COMMON_CLK_MESON_CLKC_UTILS 130 help 131 Support for the Peripherals clock controller on Amlogic A113L based 132 device, A1 SoC Family. Say Y if you want A1 Peripherals clock 133 controller to work. 134 135config COMMON_CLK_G12A 136 tristate "G12 and SM1 SoC clock controllers support" 137 depends on ARM64 138 default y 139 select COMMON_CLK_MESON_REGMAP 140 select COMMON_CLK_MESON_DUALDIV 141 select COMMON_CLK_MESON_MPLL 142 select COMMON_CLK_MESON_PLL 143 select COMMON_CLK_MESON_AO_CLKC 144 select COMMON_CLK_MESON_EE_CLKC 145 select COMMON_CLK_MESON_CPU_DYNDIV 146 select COMMON_CLK_MESON_VID_PLL_DIV 147 select COMMON_CLK_MESON_VCLK 148 select MFD_SYSCON 149 help 150 Support for the clock controller on Amlogic S905D2, S905X2 and S905Y2 151 devices, aka g12a. Say Y if you want peripherals to work. 152 153config COMMON_CLK_S4_PLL 154 tristate "S4 SoC PLL clock controllers support" 155 depends on ARM64 156 default y 157 select COMMON_CLK_MESON_CLKC_UTILS 158 select COMMON_CLK_MESON_MPLL 159 select COMMON_CLK_MESON_PLL 160 select COMMON_CLK_MESON_REGMAP 161 help 162 Support for the PLL clock controller on Amlogic S805X2 and S905Y4 devices, 163 AKA S4. Say Y if you want the board to work, because PLLs are the parent of 164 most peripherals. 165 166config COMMON_CLK_S4_PERIPHERALS 167 tristate "S4 SoC peripherals clock controllers support" 168 depends on ARM64 169 default y 170 select COMMON_CLK_MESON_CLKC_UTILS 171 select COMMON_CLK_MESON_REGMAP 172 select COMMON_CLK_MESON_DUALDIV 173 select COMMON_CLK_MESON_VID_PLL_DIV 174 help 175 Support for the peripherals clock controller on Amlogic S805X2 and S905Y4 176 devices, AKA S4. Say Y if you want S4 peripherals clock controller to work. 177endmenu 178