summaryrefslogtreecommitdiffstats
path: root/drivers/clk/meson/Kconfig
diff options
context:
space:
mode:
authorMichael Turquette <mturquette@baylibre.com>2016-05-23 23:29:13 +0200
committerMichael Turquette <mturquette@baylibre.com>2016-06-23 03:02:52 +0200
commitcb7c47d7066ca9fda053f5cb327ea49e14f42409 (patch)
treeaeebd084489bee316cd8e2ce53b5181d63c1eb75 /drivers/clk/meson/Kconfig
parentclk: meson8b: convert to platform_driver (diff)
downloadlinux-cb7c47d7066ca9fda053f5cb327ea49e14f42409.tar.xz
linux-cb7c47d7066ca9fda053f5cb327ea49e14f42409.zip
clk: meson: only build selected platforms
Break the AmLogic clock code up so that only the necessary parts are compiled and linked. The core code is selected by both arm and arm64 builds with COMMON_CLK_AMLOGIC. The individual drivers have their own config options as well. Tested-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Diffstat (limited to 'drivers/clk/meson/Kconfig')
-rw-r--r--drivers/clk/meson/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/clk/meson/Kconfig b/drivers/clk/meson/Kconfig
new file mode 100644
index 000000000000..7bb19ad7369e
--- /dev/null
+++ b/drivers/clk/meson/Kconfig
@@ -0,0 +1,12 @@
+config COMMON_CLK_AMLOGIC
+ bool
+ depends on OF
+ depends on ARCH_MESON || COMPILE_TEST
+
+config COMMON_CLK_MESON8B
+ bool
+ depends on COMMON_CLK_AMLOGIC
+ help
+ Support for the clock controller on AmLogic S805 devices, aka
+ meson8b. Say Y if you want peripherals and CPU frequency scaling to
+ work.