clk: samsung: Don't build ARMv8 clock drivers on ARMv7
[deliverable/linux.git] / drivers / clk / samsung / Kconfig
index 84196ecdaa12f5df319f6fafe2e9b6bd664bc9d5..20c5fe92ab4adf9da4e655e264f2ba1d486bd8b5 100644 (file)
@@ -1,9 +1,17 @@
+# Recent Exynos platforms should just select COMMON_CLK_SAMSUNG:
 config COMMON_CLK_SAMSUNG
-       bool
-       select COMMON_CLK
+       bool "Samsung Exynos clock controller support" if COMPILE_TEST
+       # Clocks on ARM64 SoCs (e.g. Exynos5433, Exynos7) are chosen by
+       # EXYNOS_ARM64_COMMON_CLK to avoid building them on ARMv7:
+       select EXYNOS_ARM64_COMMON_CLK if ARM64 && ARCH_EXYNOS
+
+config EXYNOS_ARM64_COMMON_CLK
+       bool "Samsung Exynos ARMv8-family clock controller support" if COMPILE_TEST
+       depends on COMMON_CLK_SAMSUNG
 
+# For S3C24XX platforms, select following symbols:
 config S3C2410_COMMON_CLK
-       bool
+       bool "Samsung S3C2410 clock controller support" if COMPILE_TEST
        select COMMON_CLK_SAMSUNG
        help
          Build the s3c2410 clock driver based on the common clock framework.
@@ -17,10 +25,9 @@ config S3C2410_COMMON_DCLK
          framework.
 
 config S3C2412_COMMON_CLK
-       bool
+       bool "Samsung S3C2412 clock controller support" if COMPILE_TEST
        select COMMON_CLK_SAMSUNG
 
 config S3C2443_COMMON_CLK
-       bool
+       bool "Samsung S3C2443 clock controller support" if COMPILE_TEST
        select COMMON_CLK_SAMSUNG
-
This page took 0.024658 seconds and 5 git commands to generate.