summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorAbel Vesa <abel.vesa@nxp.com>2018-12-14 15:20:34 +0100
committerStephen Boyd <sboyd@kernel.org>2018-12-14 21:56:27 +0100
commitd360b130e210f2468b2ff9cae5177c6cba780e83 (patch)
tree31ce769f9fc2edb2ad9984a5fe90766f9dfbf263 /drivers/clk
parentclk: imx: remove redundant initialization of ret to zero (diff)
downloadlinux-d360b130e210f2468b2ff9cae5177c6cba780e83.tar.xz
linux-d360b130e210f2468b2ff9cae5177c6cba780e83.zip
clk: imx: Make the i.MX8MQ CCM clock driver CLK_IMX8MQ dependant
Remove the dependency between the i.MX8MQ CCM clock driver and the CONFIG_SOC_IMX8MQ and use CONFIG_CLK_IMX8MQ instead. CONFIG_CLK_IMX8MQ depends on ARCH_MXC && ARM64. Signed-off-by: Abel Vesa <abel.vesa@nxp.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/Kconfig1
-rw-r--r--drivers/clk/imx/Kconfig5
-rw-r--r--drivers/clk/imx/Makefile2
3 files changed, 8 insertions, 0 deletions
diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index 81cdb4eaca07..5c1e0c760f0a 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -286,6 +286,7 @@ config COMMON_CLK_STM32H7
source "drivers/clk/actions/Kconfig"
source "drivers/clk/bcm/Kconfig"
source "drivers/clk/hisilicon/Kconfig"
+source "drivers/clk/imx/Kconfig"
source "drivers/clk/imgtec/Kconfig"
source "drivers/clk/ingenic/Kconfig"
source "drivers/clk/keystone/Kconfig"
diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig
new file mode 100644
index 000000000000..98ede6a2fa04
--- /dev/null
+++ b/drivers/clk/imx/Kconfig
@@ -0,0 +1,5 @@
+config CLK_IMX8MQ
+ bool "IMX8MQ CCM Clock Driver"
+ depends on ARCH_MXC && ARM64
+ help
+ Build the driver for i.MX8MQ CCM Clock Driver
diff --git a/drivers/clk/imx/Makefile b/drivers/clk/imx/Makefile
index 6952f055d0e3..c4a137889fd3 100644
--- a/drivers/clk/imx/Makefile
+++ b/drivers/clk/imx/Makefile
@@ -16,6 +16,8 @@ obj-y += \
clk-pfd.o \
clk-sccg-pll.o
+obj-$(CONFIG_CLK_IMX8MQ) += clk-imx8mq.o
+
obj-$(CONFIG_SOC_IMX1) += clk-imx1.o
obj-$(CONFIG_SOC_IMX21) += clk-imx21.o
obj-$(CONFIG_SOC_IMX25) += clk-imx25.o