From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> To: Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Dinh Nguyen <dinguyen@kernel.org>, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Arnd Bergmann <arnd@arndb.de> Cc: linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Subject: [PATCH 2/3] clk: socfpga: drop duplicated lines in Makefile Date: Mon, 8 Mar 2021 19:23:38 +0100 [thread overview] Message-ID: <20210308182339.379775-3-krzysztof.kozlowski@canonical.com> (raw) In-Reply-To: <20210308182339.379775-1-krzysztof.kozlowski@canonical.com> Three clock drivers are used by Stratix 10, Agilex and N5X, so use separate dedicated Kconfig entry to get rid of duplicated Makefile lines. This will also allow later compile testing. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> --- drivers/clk/socfpga/Kconfig | 7 +++++++ drivers/clk/socfpga/Makefile | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/clk/socfpga/Kconfig b/drivers/clk/socfpga/Kconfig index cae6fd9fac64..4922cc35f4cc 100644 --- a/drivers/clk/socfpga/Kconfig +++ b/drivers/clk/socfpga/Kconfig @@ -1,6 +1,13 @@ # SPDX-License-Identifier: GPL-2.0 +config COMMON_CLK_STRATIX10 + bool + # Intel Stratix / Agilex / N5X clock controller support + default y if ARCH_AGILEX || ARCH_N5X || ARCH_STRATIX10 + depends on ARCH_AGILEX || ARCH_N5X || ARCH_STRATIX10 + config COMMON_CLK_AGILEX bool # Intel Agilex / N5X clock controller support default y if ARCH_AGILEX || ARCH_N5X depends on ARCH_AGILEX || ARCH_N5X + select COMMON_CLK_STRATIX10 diff --git a/drivers/clk/socfpga/Makefile b/drivers/clk/socfpga/Makefile index e3614f758184..8a875de971fc 100644 --- a/drivers/clk/socfpga/Makefile +++ b/drivers/clk/socfpga/Makefile @@ -2,6 +2,5 @@ obj-$(CONFIG_ARCH_SOCFPGA) += clk.o clk-gate.o clk-pll.o clk-periph.o obj-$(CONFIG_ARCH_SOCFPGA) += clk-pll-a10.o clk-periph-a10.o clk-gate-a10.o obj-$(CONFIG_ARCH_STRATIX10) += clk-s10.o -obj-$(CONFIG_ARCH_STRATIX10) += clk-pll-s10.o clk-periph-s10.o clk-gate-s10.o +obj-$(CONFIG_COMMON_CLK_STRATIX10) += clk-pll-s10.o clk-periph-s10.o clk-gate-s10.o obj-$(CONFIG_COMMON_CLK_AGILEX) += clk-agilex.o -obj-$(CONFIG_COMMON_CLK_AGILEX) += clk-pll-s10.o clk-periph-s10.o clk-gate-s10.o -- 2.25.1
WARNING: multiple messages have this Message-ID (diff)
From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> To: Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Dinh Nguyen <dinguyen@kernel.org>, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Arnd Bergmann <arnd@arndb.de> Cc: linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Subject: [PATCH 2/3] clk: socfpga: drop duplicated lines in Makefile Date: Mon, 8 Mar 2021 19:23:38 +0100 [thread overview] Message-ID: <20210308182339.379775-3-krzysztof.kozlowski@canonical.com> (raw) In-Reply-To: <20210308182339.379775-1-krzysztof.kozlowski@canonical.com> Three clock drivers are used by Stratix 10, Agilex and N5X, so use separate dedicated Kconfig entry to get rid of duplicated Makefile lines. This will also allow later compile testing. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> --- drivers/clk/socfpga/Kconfig | 7 +++++++ drivers/clk/socfpga/Makefile | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/clk/socfpga/Kconfig b/drivers/clk/socfpga/Kconfig index cae6fd9fac64..4922cc35f4cc 100644 --- a/drivers/clk/socfpga/Kconfig +++ b/drivers/clk/socfpga/Kconfig @@ -1,6 +1,13 @@ # SPDX-License-Identifier: GPL-2.0 +config COMMON_CLK_STRATIX10 + bool + # Intel Stratix / Agilex / N5X clock controller support + default y if ARCH_AGILEX || ARCH_N5X || ARCH_STRATIX10 + depends on ARCH_AGILEX || ARCH_N5X || ARCH_STRATIX10 + config COMMON_CLK_AGILEX bool # Intel Agilex / N5X clock controller support default y if ARCH_AGILEX || ARCH_N5X depends on ARCH_AGILEX || ARCH_N5X + select COMMON_CLK_STRATIX10 diff --git a/drivers/clk/socfpga/Makefile b/drivers/clk/socfpga/Makefile index e3614f758184..8a875de971fc 100644 --- a/drivers/clk/socfpga/Makefile +++ b/drivers/clk/socfpga/Makefile @@ -2,6 +2,5 @@ obj-$(CONFIG_ARCH_SOCFPGA) += clk.o clk-gate.o clk-pll.o clk-periph.o obj-$(CONFIG_ARCH_SOCFPGA) += clk-pll-a10.o clk-periph-a10.o clk-gate-a10.o obj-$(CONFIG_ARCH_STRATIX10) += clk-s10.o -obj-$(CONFIG_ARCH_STRATIX10) += clk-pll-s10.o clk-periph-s10.o clk-gate-s10.o +obj-$(CONFIG_COMMON_CLK_STRATIX10) += clk-pll-s10.o clk-periph-s10.o clk-gate-s10.o obj-$(CONFIG_COMMON_CLK_AGILEX) += clk-agilex.o -obj-$(CONFIG_COMMON_CLK_AGILEX) += clk-pll-s10.o clk-periph-s10.o clk-gate-s10.o -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-03-08 18:24 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-03-08 18:23 [RFT 0/3] clk: socfpga: minor cleanups and compile testing Krzysztof Kozlowski 2021-03-08 18:23 ` Krzysztof Kozlowski 2021-03-08 18:23 ` [PATCH 1/3] clk: socfpga: allow building N5X clocks with ARCH_N5X Krzysztof Kozlowski 2021-03-08 18:23 ` Krzysztof Kozlowski 2021-03-08 18:23 ` Krzysztof Kozlowski [this message] 2021-03-08 18:23 ` [PATCH 2/3] clk: socfpga: drop duplicated lines in Makefile Krzysztof Kozlowski 2021-03-08 18:23 ` [PATCH 3/3] clk: socfpga: allow compile testing of Stratix 10 / Agilex clocks Krzysztof Kozlowski 2021-03-08 18:23 ` Krzysztof Kozlowski 2021-03-09 0:00 ` kernel test robot 2021-03-09 8:49 ` Krzysztof Kozlowski 2021-03-09 8:49 ` Krzysztof Kozlowski 2021-03-09 9:02 ` Krzysztof Kozlowski 2021-03-09 9:02 ` Krzysztof Kozlowski 2021-03-09 10:11 ` Arnd Bergmann 2021-03-09 10:11 ` Arnd Bergmann
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=20210308182339.379775-3-krzysztof.kozlowski@canonical.com \ --to=krzysztof.kozlowski@canonical.com \ --cc=arnd@arndb.de \ --cc=dinguyen@kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-clk@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=mturquette@baylibre.com \ --cc=sboyd@kernel.org \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.