linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jiaxun Yang <jiaxun.yang@flygoat.com>
To: linux-mips@vger.kernel.org
Cc: tsbogend@alpha.franken.de, mturquette@baylibre.com,
	daniel.lezcano@linaro.org, linus.walleij@linaro.org,
	vkoul@kernel.org, linux-kernel@vger.kernel.org,
	linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org,
	linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
	Jiaxun Yang <jiaxun.yang@flygoat.com>
Subject: [PATCH v4 3/9] clk: pistachio: Make it selectable for generic MIPS kernel
Date: Fri, 23 Jul 2021 10:25:37 +0800	[thread overview]
Message-ID: <20210723022543.4095-4-jiaxun.yang@flygoat.com> (raw)
In-Reply-To: <20210723022543.4095-1-jiaxun.yang@flygoat.com>

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>
---
v2: Depend on MIPS || COMPILE_TEST
---
 drivers/clk/Kconfig           | 1 +
 drivers/clk/Makefile          | 2 +-
 drivers/clk/pistachio/Kconfig | 8 ++++++++
 3 files changed, 10 insertions(+), 1 deletion(-)
 create mode 100644 drivers/clk/pistachio/Kconfig

diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index e80918be8e9c..18d31b654d02 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -389,6 +389,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"
diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile
index 5f06879d7fe9..7339a9eabeb4 100644
--- a/drivers/clk/Makefile
+++ b/drivers/clk/Makefile
@@ -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
index 000000000000..d00f7b4a25fc
--- /dev/null
+++ b/drivers/clk/pistachio/Kconfig
@@ -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.
-- 
2.32.0


  parent reply	other threads:[~2021-07-23  2:26 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-23  2:25 [PATCH v4 0/9] MIPS: Migrate pistachio to generic kernel Jiaxun Yang
2021-07-23  2:25 ` [PATCH v4 1/9] MIPS: generic: Allow generating FIT image for Marduk board Jiaxun Yang
2021-07-23  2:25 ` [PATCH v4 2/9] MIPS: DTS: Pistachio add missing cpc and cdmm Jiaxun Yang
2021-07-23  2:25 ` Jiaxun Yang [this message]
2021-07-27  0:21   ` [PATCH v4 3/9] clk: pistachio: Make it selectable for generic MIPS kernel Stephen Boyd
2021-07-23  2:25 ` [PATCH v4 4/9] clocksource/drivers/pistachio: Make it selectable for MIPS Jiaxun Yang
2021-08-13 16:03   ` Daniel Lezcano
2021-07-23  2:25 ` [PATCH v4 5/9] phy: pistachio-usb: Depend on MIPS || COMPILE_TEST Jiaxun Yang
2021-08-06 12:01   ` Vinod Koul
2021-07-23  2:25 ` [PATCH v4 6/9] pinctrl: pistachio: Make it as an option Jiaxun Yang
2021-08-10 13:27   ` Linus Walleij
2021-07-23  2:25 ` [PATCH v4 7/9] MIPS: config: generic: Add config for Marduk board Jiaxun Yang
2021-07-23  2:25 ` [PATCH v4 8/9] MIPS: Retire MACH_PISTACHIO Jiaxun Yang
2021-07-23  2:25 ` [PATCH v4 9/9] MIPS: Make a alias for pistachio_defconfig Jiaxun Yang
2021-08-07  3:06 ` [PATCH v4 0/9] MIPS: Migrate pistachio to generic kernel Jiaxun Yang
2021-08-07  9:28   ` Thomas Bogendoerfer
2021-08-12 14:09 ` Thomas Bogendoerfer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210723022543.4095-4-jiaxun.yang@flygoat.com \
    --to=jiaxun.yang@flygoat.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=mturquette@baylibre.com \
    --cc=tsbogend@alpha.franken.de \
    --cc=vkoul@kernel.org \
    --subject='Re: [PATCH v4 3/9] clk: pistachio: Make it selectable for generic MIPS kernel' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).