clk: pistachio: Make it selectable for generic MIPS kernel
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Fri, 23 Jul 2021 02:25:37 +0000 (10:25 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 12 Aug 2021 14:01:49 +0000 (16:01 +0200)
We're moving pistachio to generic MIPS kernel. The clk driver
should be avilable to the generic MIPS kernel.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
drivers/clk/Kconfig
drivers/clk/Makefile
drivers/clk/pistachio/Kconfig [new file with mode: 0644]

index e873f9e..c5b3dc9 100644 (file)
@@ -403,6 +403,7 @@ source "drivers/clk/mediatek/Kconfig"
 source "drivers/clk/meson/Kconfig"
 source "drivers/clk/mstar/Kconfig"
 source "drivers/clk/mvebu/Kconfig"
+source "drivers/clk/pistachio/Kconfig"
 source "drivers/clk/qcom/Kconfig"
 source "drivers/clk/ralink/Kconfig"
 source "drivers/clk/renesas/Kconfig"
index 2b91d34..e423121 100644 (file)
@@ -97,7 +97,7 @@ obj-y                                 += mstar/
 obj-y                                  += mvebu/
 obj-$(CONFIG_ARCH_MXS)                 += mxs/
 obj-$(CONFIG_COMMON_CLK_NXP)           += nxp/
-obj-$(CONFIG_MACH_PISTACHIO)           += pistachio/
+obj-$(CONFIG_COMMON_CLK_PISTACHIO)     += pistachio/
 obj-$(CONFIG_COMMON_CLK_PXA)           += pxa/
 obj-$(CONFIG_COMMON_CLK_QCOM)          += qcom/
 obj-y                                  += ralink/
diff --git a/drivers/clk/pistachio/Kconfig b/drivers/clk/pistachio/Kconfig
new file mode 100644 (file)
index 0000000..d00f7b4
--- /dev/null
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: GPL-2.0
+
+config COMMON_CLK_PISTACHIO
+       bool "Support for IMG Pistachio SoC clock controllers"
+       depends on MIPS || COMPILE_TEST
+       help
+         Support for the IMG Pistachio SoC clock controller.
+         Say Y if you want to include clock support.