162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci# Recent Exynos platforms should just select COMMON_CLK_SAMSUNG:
362306a36Sopenharmony_ciconfig COMMON_CLK_SAMSUNG
462306a36Sopenharmony_ci	bool "Samsung Exynos clock controller support" if COMPILE_TEST
562306a36Sopenharmony_ci	depends on OF
662306a36Sopenharmony_ci	select S3C64XX_COMMON_CLK if ARM && ARCH_S3C64XX
762306a36Sopenharmony_ci	select S5PV210_COMMON_CLK if ARM && ARCH_S5PV210
862306a36Sopenharmony_ci	select EXYNOS_3250_COMMON_CLK if ARM && SOC_EXYNOS3250
962306a36Sopenharmony_ci	select EXYNOS_4_COMMON_CLK if ARM && ARCH_EXYNOS4
1062306a36Sopenharmony_ci	select EXYNOS_5250_COMMON_CLK if ARM && SOC_EXYNOS5250
1162306a36Sopenharmony_ci	select EXYNOS_5260_COMMON_CLK if ARM && SOC_EXYNOS5260
1262306a36Sopenharmony_ci	select EXYNOS_5410_COMMON_CLK if ARM && SOC_EXYNOS5410
1362306a36Sopenharmony_ci	select EXYNOS_5420_COMMON_CLK if ARM && SOC_EXYNOS5420
1462306a36Sopenharmony_ci	select EXYNOS_ARM64_COMMON_CLK if ARM64 && ARCH_EXYNOS
1562306a36Sopenharmony_ci	select TESLA_FSD_COMMON_CLK if ARM64 && ARCH_TESLA_FSD
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciconfig S3C64XX_COMMON_CLK
1862306a36Sopenharmony_ci	bool "Samsung S3C64xx clock controller support" if COMPILE_TEST
1962306a36Sopenharmony_ci	depends on COMMON_CLK_SAMSUNG
2062306a36Sopenharmony_ci	help
2162306a36Sopenharmony_ci	  Support for the clock controller present on the Samsung S3C64xx SoCs.
2262306a36Sopenharmony_ci	  Choose Y here only if you build for this SoC.
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ciconfig S5PV210_COMMON_CLK
2562306a36Sopenharmony_ci	bool "Samsung S5Pv210 clock controller support" if COMPILE_TEST
2662306a36Sopenharmony_ci	depends on COMMON_CLK_SAMSUNG
2762306a36Sopenharmony_ci	help
2862306a36Sopenharmony_ci	  Support for the clock controller present on the Samsung S5Pv210 SoCs.
2962306a36Sopenharmony_ci	  Choose Y here only if you build for this SoC.
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ciconfig EXYNOS_3250_COMMON_CLK
3262306a36Sopenharmony_ci	bool "Samsung Exynos3250 clock controller support" if COMPILE_TEST
3362306a36Sopenharmony_ci	depends on COMMON_CLK_SAMSUNG
3462306a36Sopenharmony_ci	help
3562306a36Sopenharmony_ci	  Support for the clock controller present on the Samsung
3662306a36Sopenharmony_ci	  Exynos3250 SoCs. Choose Y here only if you build for this SoC.
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ciconfig EXYNOS_4_COMMON_CLK
3962306a36Sopenharmony_ci	bool "Samsung Exynos4 clock controller support" if COMPILE_TEST
4062306a36Sopenharmony_ci	depends on COMMON_CLK_SAMSUNG
4162306a36Sopenharmony_ci	help
4262306a36Sopenharmony_ci	  Support for the clock controller present on the Samsung
4362306a36Sopenharmony_ci	  Exynos4212 and Exynos4412 SoCs. Choose Y here only if you build for
4462306a36Sopenharmony_ci	  this SoC.
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ciconfig EXYNOS_5250_COMMON_CLK
4762306a36Sopenharmony_ci	bool "Samsung Exynos5250 clock controller support" if COMPILE_TEST
4862306a36Sopenharmony_ci	depends on COMMON_CLK_SAMSUNG
4962306a36Sopenharmony_ci	help
5062306a36Sopenharmony_ci	  Support for the clock controller present on the Samsung
5162306a36Sopenharmony_ci	  Exynos5250 SoCs. Choose Y here only if you build for this SoC.
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ciconfig EXYNOS_5260_COMMON_CLK
5462306a36Sopenharmony_ci	bool "Samsung Exynos5260 clock controller support" if COMPILE_TEST
5562306a36Sopenharmony_ci	depends on COMMON_CLK_SAMSUNG
5662306a36Sopenharmony_ci	help
5762306a36Sopenharmony_ci	  Support for the clock controller present on the Samsung
5862306a36Sopenharmony_ci	  Exynos5260 SoCs. Choose Y here only if you build for this SoC.
5962306a36Sopenharmony_ci
6062306a36Sopenharmony_ciconfig EXYNOS_5410_COMMON_CLK
6162306a36Sopenharmony_ci	bool "Samsung Exynos5410 clock controller support" if COMPILE_TEST
6262306a36Sopenharmony_ci	depends on COMMON_CLK_SAMSUNG
6362306a36Sopenharmony_ci	help
6462306a36Sopenharmony_ci	  Support for the clock controller present on the Samsung
6562306a36Sopenharmony_ci	  Exynos5410 SoCs. Choose Y here only if you build for this SoC.
6662306a36Sopenharmony_ci
6762306a36Sopenharmony_ciconfig EXYNOS_5420_COMMON_CLK
6862306a36Sopenharmony_ci	bool "Samsung Exynos5420 clock controller support" if COMPILE_TEST
6962306a36Sopenharmony_ci	depends on COMMON_CLK_SAMSUNG
7062306a36Sopenharmony_ci	help
7162306a36Sopenharmony_ci	  Support for the clock controller present on the Samsung
7262306a36Sopenharmony_ci	  Exynos5420/Exynos5422/Exynos5800 SoCs. Choose Y here only if you
7362306a36Sopenharmony_ci	  build for this SoC.
7462306a36Sopenharmony_ci
7562306a36Sopenharmony_ciconfig EXYNOS_ARM64_COMMON_CLK
7662306a36Sopenharmony_ci	bool "Samsung Exynos ARMv8-family clock controller support" if COMPILE_TEST
7762306a36Sopenharmony_ci	depends on COMMON_CLK_SAMSUNG
7862306a36Sopenharmony_ci
7962306a36Sopenharmony_ciconfig EXYNOS_AUDSS_CLK_CON
8062306a36Sopenharmony_ci	tristate "Samsung Exynos AUDSS clock controller support"
8162306a36Sopenharmony_ci	depends on COMMON_CLK_SAMSUNG
8262306a36Sopenharmony_ci	default y if ARCH_EXYNOS
8362306a36Sopenharmony_ci	help
8462306a36Sopenharmony_ci	  Support for the Audio Subsystem CLKCON clock controller present
8562306a36Sopenharmony_ci	  on some Samsung Exynos SoC variants. Choose M or Y here if you want
8662306a36Sopenharmony_ci	  to use audio devices such as I2S, PCM, etc.
8762306a36Sopenharmony_ci
8862306a36Sopenharmony_ciconfig EXYNOS_CLKOUT
8962306a36Sopenharmony_ci	tristate "Samsung Exynos clock output driver"
9062306a36Sopenharmony_ci	depends on COMMON_CLK_SAMSUNG
9162306a36Sopenharmony_ci	default y if ARCH_EXYNOS
9262306a36Sopenharmony_ci	help
9362306a36Sopenharmony_ci	  Support for the clock output (XCLKOUT) present on some of Samsung
9462306a36Sopenharmony_ci	  Exynos SoC variants. Usually the XCLKOUT is used to monitor the
9562306a36Sopenharmony_ci	  status of the certains clocks from SoC, but it could also be tied to
9662306a36Sopenharmony_ci	  other devices as an input clock.
9762306a36Sopenharmony_ci
9862306a36Sopenharmony_ciconfig TESLA_FSD_COMMON_CLK
9962306a36Sopenharmony_ci	bool "Tesla FSD clock controller support" if COMPILE_TEST
10062306a36Sopenharmony_ci	depends on COMMON_CLK_SAMSUNG
10162306a36Sopenharmony_ci	depends on EXYNOS_ARM64_COMMON_CLK
10262306a36Sopenharmony_ci	help
10362306a36Sopenharmony_ci	  Support for the clock controller present on the Tesla FSD SoC.
10462306a36Sopenharmony_ci	  Choose Y here only if you build for this SoC.
105